File tree Expand file tree Collapse file tree 1 file changed +26
-6
lines changed
Expand file tree Collapse file tree 1 file changed +26
-6
lines changed Original file line number Diff line number Diff line change 44 workflow_dispatch :
55 inputs :
66 version :
7- description : ' Version to release (automatically inferred form commits if not provided)'
7+ description : ' Version to release (automatically inferred from commits if not provided)'
88 required : false
99 force :
1010 description : Force a release even when there are release-blockers (optional)
1111 required : false
1212
13+ permissions :
14+ contents : write
15+
1316jobs :
1417 release :
15- uses : getsentry/craft/.github/workflows/release.yml@v2
16- with :
17- version : ${{ inputs.version || 'auto' }}
18- force : ${{ inputs.force || 'false' }}
19- secrets : inherit
18+ runs-on : ubuntu-latest
19+ name : ' Release a new version'
20+ steps :
21+ - name : Get auth token
22+ id : token
23+ uses : actions/create-github-app-token@v2
24+ with :
25+ app-id : ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
26+ private-key : ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
27+
28+ - uses : actions/checkout@v4
29+ with :
30+ token : ${{ steps.token.outputs.token }}
31+ fetch-depth : 0
32+
33+ - name : Prepare release
34+ uses : getsentry/craft@v2
35+ env :
36+ GITHUB_TOKEN : ${{ steps.token.outputs.token }}
37+ with :
38+ version : ${{ inputs.version || 'auto' }}
39+ force : ${{ inputs.force || 'false' }}
You can’t perform that action at this time.
0 commit comments