Skip to content

Commit c20b091

Browse files
committed
fix: clean up release.yml formatting and version comments
1 parent 9889efc commit c20b091

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,38 @@ on:
66
description: Version to release (or "auto")
77
required: false
88
force:
9-
description: Force a release even when there are release-blockers
9+
description: Force a release even when there are release-blockers (optional)
1010
required: false
1111
merge_target:
12-
description: Target branch to merge into
12+
description: Target branch to merge into. Uses the default branch as a fallback (optional)
1313
required: false
14+
1415
permissions:
1516
contents: write
1617
pull-requests: write
1718

1819
jobs:
1920
release:
2021
runs-on: ubuntu-latest
21-
name: Release a new version
22+
name: "Release a new version"
2223
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

Comments
 (0)