Skip to content

Commit 5e1a6a5

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 1be3a73 commit 5e1a6a5

2 files changed

Lines changed: 21 additions & 27 deletions

File tree

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 & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,17 @@
11
name: release
2-
32
on:
43
workflow_dispatch:
54
inputs:
65
version:
7-
description: Version to release
8-
required: true
6+
description: Version to release (or "auto")
7+
required: false
98
force:
10-
description: Force a release even when there are release-blockers (optional)
9+
description: Force a release even when there are release-blockers
1110
required: false
12-
1311
jobs:
1412
release:
15-
runs-on: ubuntu-latest
16-
name: 'Release a new version'
17-
steps:
18-
- name: Get auth token
19-
id: token
20-
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
21-
with:
22-
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
23-
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
24-
25-
- uses: actions/checkout@v2
26-
with:
27-
token: ${{ steps.token.outputs.token }}
28-
fetch-depth: 0
29-
30-
- name: Prepare release
31-
uses: getsentry/action-prepare-release@v1
32-
env:
33-
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
34-
with:
35-
version: ${{ github.event.inputs.version }}
36-
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)