Skip to content

Commit 8974ce9

Browse files
committed
ci(release): Upgrade action-prepare-release to latest version
This version reduces the boilerplate needed and offers much better publish request issue context.
1 parent 0ddd74f commit 8974ce9

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,14 @@ jobs:
1313
runs-on: ubuntu-latest
1414
name: 'Release a new version'
1515
steps:
16-
- name: Prepare release
17-
uses: getsentry/action-prepare-release@33507ed
18-
with:
19-
version: ${{ github.event.inputs.version }}
20-
force: ${{ github.event.inputs.force }}
21-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v2
2217
with:
2318
token: ${{ secrets.GH_RELEASE_PAT }}
2419
fetch-depth: 0
25-
- name: Craft Prepare
26-
run: npx @sentry/craft prepare --no-input "${{ env.RELEASE_VERSION }}"
27-
env:
28-
GITHUB_API_TOKEN: ${{ github.token }}
29-
- name: Request publish
30-
if: success()
31-
uses: actions/github-script@v3
32-
with:
33-
github-token: ${{ secrets.GH_RELEASE_PAT }}
34-
script: |
35-
const repoInfo = context.repo;
36-
await github.issues.create({
37-
owner: repoInfo.owner,
38-
repo: 'publish',
39-
title: `publish: ${repoInfo.repo}@${process.env.RELEASE_VERSION}`,
40-
});
20+
- name: Prepare release
21+
uses: getsentry/action-prepare-release@2cfce9ae4b4ef7bf34e0b7f32869128e7c903e51
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
24+
with:
25+
version: ${{ github.event.inputs.version }}
26+
force: ${{ github.event.inputs.force }}

0 commit comments

Comments
 (0)