Skip to content

Commit 1736a75

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_library.yml to Craft reusable workflow
1 parent 0223f6f commit 1736a75

2 files changed

Lines changed: 22 additions & 29 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
Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,18 @@
11
name: Release Library
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 librelay version"
17-
18-
steps:
19-
- name: Get auth token
20-
id: token
21-
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
22-
with:
23-
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
24-
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
25-
26-
- uses: actions/checkout@v6.0.1
27-
with:
28-
token: ${{ steps.token.outputs.token }}
29-
fetch-depth: 0
30-
31-
- name: Prepare release
32-
uses: getsentry/action-prepare-release@v1
33-
env:
34-
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
35-
with:
36-
version: ${{ github.event.inputs.version }}
37-
force: ${{ github.event.inputs.force }}
38-
path: py
13+
uses: getsentry/craft/.github/workflows/release.yml@v2
14+
with:
15+
version: ${{ inputs.version }}
16+
force: ${{ inputs.force }}
17+
path: py
18+
secrets: inherit

0 commit comments

Comments
 (0)