-
Notifications
You must be signed in to change notification settings - Fork 7
34 lines (31 loc) · 1.01 KB
/
trigger-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Trigger Release (Manually)
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs
on:
workflow_dispatch:
inputs:
release:
description: 'Push tag and open PR to default branch'
required: true
default: 'prepare-release-candidate'
type: choice
options:
- prepare-release
- prepare-release-candidate
jobs:
prepare_release:
name: Trigger a ${{ inputs.release }} job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
with:
token: ${{ secrets.QCBOT_TOKEN }}
# Set fetch-depth: 0 to fetch all history for all branches and tags.
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Setup identity
uses: ./.github/actions/setup-identity
with:
token: ${{ secrets.QCBOT_TOKEN }}
- run: make ${{ inputs.release }}