Skip to content

Commit 46e446b

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 decddd3 commit 46e446b

File tree

2 files changed

+21
-30
lines changed

2 files changed

+21
-30
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: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,17 @@
11
name: Release
2-
3-
permissions:
4-
contents: read
5-
62
on:
73
workflow_dispatch:
84
inputs:
95
version:
10-
description: Version to release
11-
required: true
6+
description: Version to release (or "auto")
7+
required: false
128
force:
13-
description: Force a release even when there are release-blockers (optional)
9+
description: Force a release even when there are release-blockers
1410
required: false
15-
1611
jobs:
1712
release:
18-
runs-on: ubuntu-latest
19-
name: "Release a new version"
20-
steps:
21-
- name: Get auth token
22-
id: token
23-
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
24-
with:
25-
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
26-
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
27-
28-
- uses: actions/checkout@v4
29-
with:
30-
token: ${{ steps.token.outputs.token }}
31-
fetch-depth: 0
32-
33-
- name: Prepare release
34-
uses: getsentry/action-prepare-release@v1
35-
env:
36-
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
37-
with:
38-
version: ${{ github.event.inputs.version }}
39-
force: ${{ github.event.inputs.force }}
13+
uses: getsentry/craft/.github/workflows/release.yml@v2
14+
with:
15+
version: ${{ inputs.version }}
16+
force: ${{ inputs.force }}
17+
secrets: inherit

0 commit comments

Comments
 (0)