Skip to content

Commit

Permalink
build: Use Accept:application/vnd.github.VERSION.sha to get the lates…
Browse files Browse the repository at this point in the history
…t sha of sentry-api-schema repo
  • Loading branch information
ryan953 committed Feb 11, 2024
1 parent 5738d6e commit ebe6045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/bump-api-schema-sha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
git config user.name "openapi-getsentry-bot"
filepath="src/build/resolveOpenAPI.ts"
sha="$(curl -sSL 'https://api.github.com/repos/getsentry/sentry-api-schema/commits/main' | awk 'BEGIN { RS=",|:{\n"; FS="\""; } $2 == "sha" { print $4 }')"
sha="$(curl -sSl -H 'Accept: application/vnd.github.VERSION.sha' 'https://api.github.com/repos/getsentry/sentry-api-schema/commits/main')"
sed -i -e "s|^const SENTRY_API_SCHEMA_SHA =.*$|const SENTRY_API_SCHEMA_SHA = '$sha';|g" "$filepath"
branch="bot/bump-api-schema-to-${sha:0:8}"
Expand Down

0 comments on commit ebe6045

Please sign in to comment.