Skip to content

Commit 2dbb72a

Browse files
authored
ci(release): Update release to use v1.1 of action (#1011)
Addresses @HazAT's comment here: https://sentry.slack.com/archives/C01C205FUAE/p1613045701031000
1 parent 51031bb commit 2dbb72a

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,14 @@ jobs:
1515
runs-on: ubuntu-latest
1616
name: "Release a new version"
1717
steps:
18-
- name: Prepare release
19-
uses: getsentry/action-prepare-release@33507ed
20-
with:
21-
version: ${{ github.event.inputs.version }}
22-
force: ${{ github.event.inputs.force }}
23-
2418
- uses: actions/checkout@v2
2519
with:
2620
token: ${{ secrets.GH_RELEASE_PAT }}
2721
fetch-depth: 0
28-
29-
- name: Craft Prepare
30-
run: npx @sentry/craft prepare --no-input "${{ env.RELEASE_VERSION }}"
22+
- name: Prepare release
23+
uses: getsentry/[email protected]
3124
env:
32-
GITHUB_API_TOKEN: ${{ github.token }}
33-
34-
- name: Request publish
35-
if: success()
36-
uses: actions/github-script@v3
25+
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
3726
with:
38-
github-token: ${{ secrets.GH_RELEASE_PAT }}
39-
script: |
40-
const repoInfo = context.repo;
41-
await github.issues.create({
42-
owner: repoInfo.owner,
43-
repo: 'publish',
44-
title: `publish: ${repoInfo.repo}@${process.env.RELEASE_VERSION}`,
45-
});
27+
version: ${{ github.event.inputs.version }}
28+
force: ${{ github.event.inputs.force }}

0 commit comments

Comments
 (0)