Skip to content

Commit d21c500

Browse files
authored
Replace release bot with GH app (#2491)
1 parent 67a0489 commit d21c500

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/prepare_batch_release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,20 @@ jobs:
1313
runs-on: ubuntu-latest
1414
name: "Release a new version"
1515
steps:
16+
- name: Get auth token
17+
id: token
18+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
19+
with:
20+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
21+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
1622
- uses: actions/checkout@v2
1723
with:
18-
token: ${{ secrets.GH_RELEASE_PAT }}
24+
token: ${{ steps.token.outputs.token }}
1925
fetch-depth: 0
2026
- name: Prepare release
2127
uses: getsentry/action-prepare-release@v1
2228
env:
23-
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
29+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
2430
with:
2531
version: ${{ github.event.inputs.version }}
2632
force: ${{ github.event.inputs.force }}

.github/workflows/prepare_raven_release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,20 @@ jobs:
1313
runs-on: ubuntu-latest
1414
name: "Release a new version"
1515
steps:
16+
- name: Get auth token
17+
id: token
18+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
19+
with:
20+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
21+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
1622
- uses: actions/checkout@v2
1723
with:
18-
token: ${{ secrets.GH_RELEASE_PAT }}
24+
token: ${{ steps.token.outputs.token }}
1925
fetch-depth: 0
2026
- name: Prepare release
2127
uses: getsentry/action-prepare-release@v1
2228
env:
23-
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
29+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
2430
with:
2531
path: sentry-raven
2632
version: ${{ github.event.inputs.version }}

0 commit comments

Comments
 (0)