File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Bump API Schema SHA
2
2
on :
3
3
4
- # This could be run manually, but general expectation is that this fires from GHA in
5
- # getsentry/sentry-api-schema on changes there. See:
4
+ # This could be run manually, but the general expectation is that this fires
5
+ # from GHA in getsentry/sentry-api-schema on changes there. See:
6
6
#
7
- # https://develop.sentry.dev/api/public/#build-process
7
+ # https://develop.sentry.dev/api/public/#build-process
8
8
9
9
workflow_dispatch :
10
10
jobs :
20
20
run : |
21
21
filepath="src/gatsby/utils/resolveOpenAPI.ts"
22
22
sha="$(curl -sSL 'https://api.github.com/repos/getsentry/sentry-api-schema/commits/main' | awk 'BEGIN { RS=",|:{\n"; FS="\""; } $2 == "sha" { print $4 }')"
23
- sed -i -e 's|^const SENTRY_API_SCHEMA_SHA =.*$|const SENTRY_API_SCHEMA_SHA = "'$SHA'"|g' "$filepath"
23
+ 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"
24
26
git add "$filepath"
25
- git commit -m "Bump API schema to $sha"
27
+ git commit -m "Bump API schema to ${ sha:0:8} "
26
28
git push
You can’t perform that action at this time.
0 commit comments