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