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