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