Skip to content

Commit f015aae

Browse files
authored
build: Use jq instead of awk to parse the SHA when building api-docs (#9086)
1 parent 0a07399 commit f015aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: .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' | awk 'BEGIN { RS=",|:{\n"; FS="\""; } $2 == "sha" { print $4 }')"
27+
sha="$(curl -sSL 'https://api.github.com/repos/getsentry/sentry-api-schema/commits/main')" | jq --raw-output .sha
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)