mirror of
https://github.com/getsentry/self-hosted.git
synced 2026-02-01 16:32:44 +00:00
ci(release): Upgrade action-prepare-release to latest version (#798)
* ci(release): Upgrade action-prepare-release to latest version This version reduces the boilerplate needed and offers much better publish request issue context. * use the version tag
This commit is contained in:
parent
2dadbda1cc
commit
99e71b180c
31
.github/workflows/release.yml
vendored
31
.github/workflows/release.yml
vendored
@ -12,35 +12,20 @@ on:
|
||||
# We want the release to be at 10 or 11am Pacific Time
|
||||
# We also make this an hour after all others such as Sentry,
|
||||
# Snuba, and Relay to make sure their releases finish.
|
||||
- cron: '0 18 15 * *'
|
||||
- cron: "0 18 15 * *"
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
name: 'Release a new version'
|
||||
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 }}
|
||||
fetch-depth: 0
|
||||
- uses: getsentry/craft@master
|
||||
name: Craft Prepare
|
||||
- name: Prepare release
|
||||
uses: getsentry/action-prepare-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
|
||||
with:
|
||||
action: prepare
|
||||
version: ${{ env.RELEASE_VERSION }}
|
||||
- name: Request publish
|
||||
if: success()
|
||||
uses: actions/github-script@v3
|
||||
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 }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user