Skip to content

Commit 4296edc

Browse files
authored
ci(release): Switch from action-prepare-release to Craft (#52)
* 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 * Add explicit permissions block to ci.yml * Revert permissions changes to ci.yml * fix: clean up release.yml formatting and version comments * build(craft): Update Craft action to c6e2f04
1 parent b2397fb commit 4296edc

2 files changed

Lines changed: 24 additions & 3 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Changelog Preview
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
- reopened
8+
- edited
9+
- labeled
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
14+
jobs:
15+
changelog-preview:
16+
uses: getsentry/craft/.github/workflows/changelog-preview.yml@v2
17+
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
@@ -27,7 +31,7 @@ jobs:
2731
fetch-depth: 0
2832

2933
- name: Prepare release
30-
uses: getsentry/action-prepare-release@v1
34+
uses: getsentry/craft@c6e2f04939b6ee67030588afbb5af76b127d8203 # v2
3135
env:
3236
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
3337
with:

0 commit comments

Comments
 (0)