Skip to content

Commit 096e94b

Browse files
authored
Merge ecdd181 into f064536
2 parents f064536 + ecdd181 commit 096e94b

File tree

2 files changed

+36
-26
lines changed

2 files changed

+36
-26
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: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,34 @@ 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
14-
1514
jobs:
1615
release:
1716
runs-on: ubuntu-latest
18-
name: "Release a new version"
17+
name: Release a new version
1918
steps:
20-
- name: Get auth token
21-
id: token
22-
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
23-
with:
24-
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
25-
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
26-
- uses: actions/checkout@v6
27-
with:
28-
token: ${{ steps.token.outputs.token }}
29-
# Needs to be set, otherwise git describe --tags will fail with: No names found, cannot describe anything
30-
fetch-depth: 0
31-
submodules: 'recursive'
32-
- name: Prepare release
33-
uses: getsentry/action-prepare-release@v1
34-
env:
35-
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
36-
with:
37-
version: ${{ github.event.inputs.version }}
38-
force: ${{ github.event.inputs.force }}
39-
merge_target: ${{ github.event.inputs.merge_target }}
19+
- name: Get auth token
20+
id: token
21+
uses: actions/create-github-app-token@v1
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/craft@v2
31+
env:
32+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
33+
with:
34+
version: ${{ inputs.version }}
35+
force: ${{ inputs.force }}
36+
merge_target: ${{ inputs.merge_target }}

0 commit comments

Comments
 (0)