Skip to content

Commit 5583054

Browse files
authored
Revert "build: Use jq instead of awk to parse the SHA when building api-doc…" (#9102)
This reverts commit f015aae.
1 parent e29e67e commit 5583054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/bump-api-schema-sha.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
git config user.name "openapi-getsentry-bot"
2525
2626
filepath="src/build/resolveOpenAPI.ts"
27-
sha="$(curl -sSL 'https://api.github.com/repos/getsentry/sentry-api-schema/commits/main')" | jq --raw-output .sha
27+
sha="$(curl -sSL 'https://api.github.com/repos/getsentry/sentry-api-schema/commits/main' | awk 'BEGIN { RS=",|:{\n"; FS="\""; } $2 == "sha" { print $4 }')"
2828
sed -i -e "s|^const SENTRY_API_SCHEMA_SHA =.*$|const SENTRY_API_SCHEMA_SHA = '$sha';|g" "$filepath"
2929
3030
branch="bot/bump-api-schema-to-${sha:0:8}"

0 commit comments

Comments
 (0)