|
1 | 1 | name: Release |
2 | | - |
3 | 2 | on: |
4 | 3 | workflow_dispatch: |
5 | 4 | inputs: |
6 | 5 | version: |
7 | | - description: Version to release |
8 | | - required: true |
| 6 | + description: Version to release (or "auto") |
| 7 | + required: false |
9 | 8 | force: |
10 | | - description: Force a release even when there are release-blockers (optional) |
| 9 | + description: Force a release even when there are release-blockers |
11 | 10 | required: false |
12 | 11 | merge_target: |
13 | | - description: Target branch to merge into. Uses the default branch as a fallback (optional) |
| 12 | + description: Target branch to merge into |
14 | 13 | required: false |
| 14 | +permissions: |
| 15 | + contents: write |
| 16 | + pull-requests: write |
15 | 17 |
|
16 | 18 | jobs: |
17 | 19 | release: |
18 | 20 | runs-on: ubuntu-latest |
19 | | - name: "Release a new version" |
| 21 | + name: Release a new version |
20 | 22 | steps: |
21 | | - - name: Get auth token |
22 | | - id: token |
23 | | - uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 |
24 | | - with: |
25 | | - app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} |
26 | | - private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} |
27 | | - - uses: actions/checkout@v6.0.1 |
28 | | - with: |
29 | | - token: ${{ steps.token.outputs.token }} |
30 | | - fetch-depth: 0 |
31 | | - - name: Prepare release |
32 | | - uses: getsentry/action-prepare-release@v1 |
33 | | - env: |
34 | | - GITHUB_TOKEN: ${{ steps.token.outputs.token }} |
35 | | - with: |
36 | | - version: ${{ github.event.inputs.version }} |
37 | | - force: ${{ github.event.inputs.force }} |
38 | | - merge_target: ${{ github.event.inputs.merge_target }} |
| 23 | + - name: Get auth token |
| 24 | + id: token |
| 25 | + uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2 |
| 26 | + with: |
| 27 | + app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} |
| 28 | + private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} |
| 29 | + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 |
| 30 | + with: |
| 31 | + token: ${{ steps.token.outputs.token }} |
| 32 | + fetch-depth: 0 |
| 33 | + - name: Prepare release |
| 34 | + uses: getsentry/craft@39ee616a6a58dc64797feecb145d66770492b66c # v2 |
| 35 | + env: |
| 36 | + GITHUB_TOKEN: ${{ steps.token.outputs.token }} |
| 37 | + with: |
| 38 | + version: ${{ inputs.version }} |
| 39 | + force: ${{ inputs.force }} |
| 40 | + merge_target: ${{ inputs.merge_target }} |
0 commit comments