11name : Release
2+
3+ permissions :
4+ contents : read
5+
26on :
37 workflow_dispatch :
48 inputs :
59 version :
610 description : Version to release (or "auto")
711 required : false
812 force :
9- description : Force a release even when there are release-blockers
13+ description : Force a release even when there are release-blockers (optional)
1014 required : false
11- permissions :
12- contents : write
13- pull-requests : write
1415
1516jobs :
1617 release :
1718 runs-on : ubuntu-latest
18- name : Release a new version
19+ name : " Release a new version"
1920 steps :
20- - name : Get auth token
21- id : token
22- uses : actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2
23- with :
24- app-id : ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
25- private-key : ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
26- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
27- with :
28- token : ${{ steps.token.outputs.token }}
29- fetch-depth : 0
30- - name : Prepare release
31- uses : getsentry/craft@1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce # v2
32- env :
33- GITHUB_TOKEN : ${{ steps.token.outputs.token }}
34- with :
35- version : ${{ inputs.version }}
36- force : ${{ inputs.force }}
21+ - name : Get auth token
22+ id : token
23+ uses : actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
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@1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce # v2
35+ env :
36+ GITHUB_TOKEN : ${{ steps.token.outputs.token }}
37+ with :
38+ version : ${{ github.event.inputs.version }}
39+ force : ${{ github.event.inputs.force }}
0 commit comments