Skip to content

Commit 94bff8d

Browse files
BYKromtsn
andauthored
ci(release): Switch from action-prepare-release to Craft (#5014)
* 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 * ci(release): Restore GitHub App token authentication The previous migration incorrectly removed the GitHub App token authentication step. This commit restores it by switching to the composite action pattern which preserves the auth flow. * fix: Pin actions to SHA and add permissions blocks * fix: Use correct action version SHAs (restore original versions) * fix: Clean up action version comments * Update Craft SHA to 1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce * Add explicit permissions block to agp-matrix.yml * Add explicit permissions block to enforce-license-compliance.yml * Add explicit permissions block to generate-javadocs.yml * Add explicit permissions block to integration-tests-benchmarks.yml * Add explicit permissions block to integration-tests-ui-critical.yml * Add explicit permissions block to integration-tests-ui.yml * Revert permissions changes to agp-matrix.yml * Revert permissions changes to enforce-license-compliance.yml * Revert permissions changes to generate-javadocs.yml * Revert permissions changes to integration-tests-benchmarks.yml * Revert permissions changes to integration-tests-ui-critical.yml * Revert permissions changes to integration-tests-ui.yml * fix: revert extraneous changes to non-release workflow files * fix: clean up release.yml formatting and version comments * build(craft): Update Craft action to c6e2f04 * chore: add unlabeled trigger to changelog-preview --------- Co-authored-by: Roman Zavarnitsyn <rom4ek93@gmail.com>
1 parent fb05841 commit 94bff8d

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,15 +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:
99
description: Force a release even when there are release-blockers (optional)
1010
required: false
1111
merge_target:
1212
description: Target branch to merge into. Uses the default branch as a fallback (optional)
1313
required: false
1414

15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
1519
jobs:
1620
release:
1721
runs-on: ubuntu-latest
@@ -30,7 +34,7 @@ jobs:
3034
fetch-depth: 0
3135
submodules: 'recursive'
3236
- name: Prepare release
33-
uses: getsentry/action-prepare-release@v1
37+
uses: getsentry/craft@c6e2f04939b6ee67030588afbb5af76b127d8203 # v2
3438
env:
3539
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
3640
with:

0 commit comments

Comments
 (0)