|
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 | +permissions: |
| 12 | + contents: write |
| 13 | + pull-requests: write |
| 14 | + |
11 | 15 | jobs: |
12 | 16 | release: |
13 | 17 | runs-on: ubuntu-latest |
14 | | - name: "Release a new version" |
| 18 | + name: Release a new version |
15 | 19 | steps: |
16 | | - - name: Get auth token |
17 | | - id: token |
18 | | - uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 |
19 | | - with: |
20 | | - app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} |
21 | | - private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} |
22 | | - - uses: actions/checkout@v6 |
23 | | - with: |
24 | | - token: ${{ steps.token.outputs.token }} |
25 | | - fetch-depth: 0 |
26 | | - - name: Prepare release |
27 | | - uses: getsentry/action-prepare-release@v1 |
28 | | - env: |
29 | | - GITHUB_TOKEN: ${{ steps.token.outputs.token }} |
30 | | - with: |
31 | | - version: ${{ github.event.inputs.version }} |
32 | | - force: ${{ github.event.inputs.force }} |
| 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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 |
| 27 | + with: |
| 28 | + token: ${{ steps.token.outputs.token }} |
| 29 | + fetch-depth: 0 |
| 30 | + - name: Prepare release |
| 31 | + uses: getsentry/craft@39ee616a6a58dc64797feecb145d66770492b66c # v2 |
| 32 | + env: |
| 33 | + GITHUB_TOKEN: ${{ steps.token.outputs.token }} |
| 34 | + with: |
| 35 | + version: ${{ inputs.version }} |
| 36 | + force: ${{ inputs.force }} |
0 commit comments