Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(release): Upgrade action-prepare-release to latest version #311

Merged
merged 1 commit into from
Jan 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 5 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ jobs:
runs-on: ubuntu-latest
name: "Release a new version"
steps:
- name: Prepare release
uses: getsentry/action-prepare-release@33507ed
with:
version: ${{ github.event.inputs.version }}
force: ${{ github.event.inputs.force }}

- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_RELEASE_PAT }}
Expand All @@ -32,20 +26,10 @@ jobs:
profile: minimal
override: true

- name: Craft Prepare
run: npx @sentry/craft prepare --no-input "${{ env.RELEASE_VERSION }}"
- name: Prepare release
uses: getsentry/action-prepare-release@v1
env:
GITHUB_API_TOKEN: ${{ github.token }}

- name: Request publish
if: success()
uses: actions/github-script@v3
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
with:
github-token: ${{ secrets.GH_RELEASE_PAT }}
script: |
const repoInfo = context.repo;
await github.issues.create({
owner: repoInfo.owner,
repo: 'publish',
title: `publish: ${repoInfo.repo}@${process.env.RELEASE_VERSION}`,
});
version: ${{ github.event.inputs.version }}
force: ${{ github.event.inputs.force }}