Skip to content

Commit a25a115

Browse files
committed
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
1 parent 4728fc1 commit a25a115

File tree

2 files changed

+23
-25
lines changed

2 files changed

+23
-25
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Changelog Preview
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
- reopened
8+
- edited
9+
- labeled
10+
jobs:
11+
changelog-preview:
12+
uses: getsentry/craft/.github/workflows/changelog-preview.yml@v2
13+
secrets: inherit

.github/workflows/release.yml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,19 @@ 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:
9-
description: Force a release even when there are release-blockers (optional)
9+
description: Force a release even when there are release-blockers
1010
required: false
1111
merge_target:
12-
description: Target branch to merge into. Uses the default branch as a fallback (optional)
12+
description: Target branch to merge into
1313
required: false
1414
jobs:
1515
release:
16-
runs-on: ubuntu-latest
17-
name: "Release a new version"
18-
steps:
19-
- name: Get auth token
20-
id: token
21-
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
22-
with:
23-
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
24-
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
25-
- uses: actions/checkout@v4
26-
with:
27-
token: ${{ steps.token.outputs.token }}
28-
fetch-depth: 0
29-
- name: Prepare release
30-
uses: getsentry/action-prepare-release@v1
31-
env:
32-
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
33-
with:
34-
version: ${{ github.event.inputs.version }}
35-
force: ${{ github.event.inputs.force }}
36-
merge_target: ${{ github.event.inputs.merge_target }}
16+
uses: getsentry/craft/.github/workflows/release.yml@v2
17+
with:
18+
version: ${{ inputs.version }}
19+
force: ${{ inputs.force }}
20+
merge_target: ${{ inputs.merge_target }}
21+
secrets: inherit

0 commit comments

Comments
 (0)