Skip to content

Commit c551ab5

Browse files
authored
ci(release): Switch from action-prepare-release to Craft (#1167)
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
1 parent 21b1d0f commit c551ab5

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
@@ -3,11 +3,15 @@ on:
33
workflow_dispatch:
44
inputs:
55
version:
6-
description: Version to release
7-
required: true
6+
description: Version to release (or "auto")
7+
required: false
88
force:
99
description: Force a release even when there are release-blockers (optional)
1010
required: false
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
1115
jobs:
1216
release:
1317
runs-on: ubuntu-latest
@@ -24,7 +28,7 @@ jobs:
2428
token: ${{ steps.token.outputs.token }}
2529
fetch-depth: 0
2630
- name: Prepare release
27-
uses: getsentry/action-prepare-release@v1
31+
uses: getsentry/craft@c6e2f04939b6ee67030588afbb5af76b127d8203 # v2
2832
env:
2933
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
3034
with:

0 commit comments

Comments
 (0)