File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 13
13
name : ' Prepare a new version'
14
14
15
15
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 }}
22
+
16
23
- uses : actions/checkout@v4
17
24
with :
18
- token : ${{ secrets.GH_RELEASE_PAT }}
25
+ token : ${{ steps.token.outputs.token }}
19
26
fetch-depth : 0
20
27
21
28
# https://github.com/actions-ecosystem/action-regex-match
38
45
uses : getsentry/action-prepare-release@v1
39
46
if : github.event.pull_request.merged == true && steps.version-regex.outputs.match != '' && steps.get_version.outputs.version != ''
40
47
env :
41
- GITHUB_TOKEN : ${{ secrets.GH_RELEASE_PAT }}
48
+ GITHUB_TOKEN : ${{ steps.token.outputs.token }}
42
49
with :
43
50
version : ${{ steps.get_version.outputs.version }}
44
51
force : false
Original file line number Diff line number Diff line change @@ -17,14 +17,20 @@ jobs:
17
17
runs-on : ubuntu-20.04
18
18
name : ' Release a new version'
19
19
steps :
20
+ - name : Get auth token
21
+ id : token
22
+ uses : actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
23
+ with :
24
+ app-id : ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
25
+ private-key : ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
20
26
- uses : actions/checkout@v4
21
27
with :
22
- token : ${{ secrets.GH_RELEASE_PAT }}
28
+ token : ${{ steps.token.outputs.token }}
23
29
fetch-depth : 0
24
30
- name : Prepare release
25
31
uses : getsentry/action-prepare-release@v1
26
32
env :
27
- GITHUB_TOKEN : ${{ secrets.GH_RELEASE_PAT }}
33
+ GITHUB_TOKEN : ${{ steps.token.outputs.token }}
28
34
with :
29
35
version : ${{ github.event.inputs.version }}
30
36
force : ${{ github.event.inputs.force }}
You can’t perform that action at this time.
0 commit comments