File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,16 @@ jobs:
20
20
run : |
21
21
git config user.email "bot@getsentry.com"
22
22
git config user.name "openapi-getsentry-bot"
23
- git checkout -b "bot/bump-api-schema-to-${sha:0:8}"
24
23
25
24
filepath="src/gatsby/utils/resolveOpenAPI.ts"
26
25
sha="$(curl -sSL 'https://api.github.com/repos/getsentry/sentry-api-schema/commits/main' | awk 'BEGIN { RS=",|:{\n"; FS="\""; } $2 == "sha" { print $4 }')"
27
26
sed -i -e 's|^const SENTRY_API_SCHEMA_SHA =.*$|const SENTRY_API_SCHEMA_SHA = "'$sha'"|g' "$filepath"
28
27
28
+ branch="bot/bump-api-schema-to-${sha:0:8}"
29
+ git checkout -b "$branch"
29
30
git add "$filepath"
30
31
git commit -m "Bump API schema to ${sha:0:8}"
31
- git push
32
+ git push --set-upstream origin "$branch"
32
33
33
34
gh pr create --fill
34
35
gh pr merge --squash
You can’t perform that action at this time.
0 commit comments