Skip to content

Commit 6ed9830

Browse files
committed
fix: clean up release.yml formatting and version comments
1 parent 0829346 commit 6ed9830

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,39 @@
11
name: Release
2+
3+
permissions:
4+
contents: read
5+
26
on:
37
workflow_dispatch:
48
inputs:
59
version:
610
description: Version to release (or "auto")
711
required: false
812
force:
9-
description: Force a release even when there are release-blockers
13+
description: Force a release even when there are release-blockers (optional)
1014
required: false
11-
permissions:
12-
contents: write
13-
pull-requests: write
1415

1516
jobs:
1617
release:
1718
runs-on: ubuntu-latest
18-
name: Release a new version
19+
name: "Release a new version"
1920
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
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 }}
21+
- name: Get auth token
22+
id: token
23+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
24+
with:
25+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
26+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
27+
28+
- uses: actions/checkout@v4
29+
with:
30+
token: ${{ steps.token.outputs.token }}
31+
fetch-depth: 0
32+
33+
- name: Prepare release
34+
uses: getsentry/craft@1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce # v2
35+
env:
36+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
37+
with:
38+
version: ${{ github.event.inputs.version }}
39+
force: ${{ github.event.inputs.force }}

0 commit comments

Comments
 (0)