Skip to content

Commit 04c0471

Browse files
authored
ci(release): Switch from action-prepare-release to Craft (#202)
* ci(release): Switch from action-prepare-release to Craft This PR migrates from the deprecated action-prepare-release to the new Craft GitHub Actions (reusable workflow or composite action). Changes: - Migrate .github/workflows/release.yml to Craft reusable workflow * ci(release): Restore GitHub App token authentication The previous migration incorrectly removed the GitHub App token authentication step. This commit restores it by switching to the composite action pattern which preserves the auth flow. * fix: Pin actions to SHA and add permissions blocks * fix: Clean up action version comments * Update Craft SHA to 1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce * fix: revert extraneous changes to non-release workflow files * fix: clean up release.yml formatting and version comments * build(craft): Update Craft action to c6e2f04 * chore: add unlabeled trigger to changelog-preview
1 parent 4709a68 commit 04c0471

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Changelog Preview
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
- reopened
8+
- edited
9+
- labeled
10+
- unlabeled
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
15+
jobs:
16+
changelog-preview:
17+
uses: getsentry/craft/.github/workflows/changelog-preview.yml@v2
18+
secrets: inherit

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: Version to release
8-
required: true
7+
description: Version to release (or "auto")
8+
required: false
99
force:
1010
description: Force a release even when there are release-blockers (optional)
1111
required: false
1212

13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
1317
jobs:
1418
release:
1519
runs-on: ubuntu-latest
@@ -28,7 +32,7 @@ jobs:
2832
fetch-depth: 0
2933

3034
- name: Prepare release
31-
uses: getsentry/action-prepare-release@3cea80dc3938c0baf5ec4ce752ecb311f8780cdc # v1.6.4
35+
uses: getsentry/craft@c6e2f04939b6ee67030588afbb5af76b127d8203 # v2
3236
env:
3337
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
3438
with:

0 commit comments

Comments
 (0)