Skip to content

Commit 6224690

Browse files
authored
ci: Try to fix bump-api-schema jobs (#17199)
Main change here is moving the token _before_ checkout and using that token for check out to make sure we have the right permissions being active.
1 parent 22fdef2 commit 6224690

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ jobs:
1111
runs-on: ubuntu-latest
1212
name: 'Bump API Schema SHA'
1313
steps:
14-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1514
- name: Get auth token
1615
id: token
17-
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
16+
uses: actions/create-github-app-token@v3
1817
with:
1918
app-id: ${{ vars.SENTRY_API_SCHEMA_UPDATER_APP_CLIENT_ID }}
2019
private-key: ${{ secrets.SENTRY_API_SCHEMA_UPDATER_PRIVATE_KEY }}
20+
owner: getsentry
2121
repositories: |
2222
sentry-docs
2323
sentry-api-schema
24+
- uses: actions/checkout@v6 # v6
25+
with:
26+
token: ${{ steps.token.outputs.token }}
2427
- name: 'Bump API Schema SHA'
2528
shell: bash
2629
env:
@@ -54,4 +57,4 @@ jobs:
5457
git push --set-upstream origin "$branch"
5558
5659
gh pr create --fill
57-
gh pr merge --squash --admin
60+
gh pr merge --squash --admin -d

0 commit comments

Comments
 (0)