We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
jq
1 parent e29e67e commit 5583054Copy full SHA for 5583054
.github/workflows/bump-api-schema-sha.yml
@@ -24,7 +24,7 @@ jobs:
24
git config user.name "openapi-getsentry-bot"
25
26
filepath="src/build/resolveOpenAPI.ts"
27
- sha="$(curl -sSL 'https://api.github.com/repos/getsentry/sentry-api-schema/commits/main')" | jq --raw-output .sha
+ sha="$(curl -sSL 'https://api.github.com/repos/getsentry/sentry-api-schema/commits/main' | awk 'BEGIN { RS=",|:{\n"; FS="\""; } $2 == "sha" { print $4 }')"
28
sed -i -e "s|^const SENTRY_API_SCHEMA_SHA =.*$|const SENTRY_API_SCHEMA_SHA = '$sha';|g" "$filepath"
29
30
branch="bot/bump-api-schema-to-${sha:0:8}"
0 commit comments