Skip to content

Commit 4cd3359

Browse files
authored
ci(release): Switch from action-prepare-release to Craft (#504)
* 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: Use correct action version SHAs (restore original versions) * fix: Use correct action version SHAs (restore original versions) * fix: Add permissions block to workflows * 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 d06a96e commit 4cd3359

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed
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
@@ -27,7 +31,7 @@ jobs:
2731
fetch-depth: 0
2832

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

0 commit comments

Comments
 (0)