Skip to content

Commit f0f5d35

Browse files
committed
chore: don't use craft reusable workflow because it's broken
1 parent 77b589f commit f0f5d35

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,36 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'Version to release (automatically inferred form commits if not provided)'
7+
description: 'Version to release (automatically inferred from commits if not provided)'
88
required: false
99
force:
1010
description: Force a release even when there are release-blockers (optional)
1111
required: false
1212

13+
permissions:
14+
contents: write
15+
1316
jobs:
1417
release:
15-
uses: getsentry/craft/.github/workflows/release.yml@v2
16-
with:
17-
version: ${{ inputs.version || 'auto' }}
18-
force: ${{ inputs.force || 'false' }}
19-
secrets: inherit
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@v2
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/craft@v2
35+
env:
36+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
37+
with:
38+
version: ${{ inputs.version || 'auto' }}
39+
force: ${{ inputs.force || 'false' }}

0 commit comments

Comments
 (0)