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