ci: run release from non-main branch
This commit is contained in:
parent
20e27070dc
commit
9ea1d1c581
1 changed files with 6 additions and 0 deletions
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
|
@ -16,6 +16,10 @@ on:
|
||||||
- major
|
- major
|
||||||
- minor
|
- minor
|
||||||
- patch
|
- patch
|
||||||
|
branch:
|
||||||
|
description: 'Branch to release from'
|
||||||
|
required: true
|
||||||
|
default: 'master'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
@ -29,6 +33,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.BOT_PAT }}
|
token: ${{ secrets.BOT_PAT }}
|
||||||
|
- if: ${{ github.event.inputs.branch != 'master' }}
|
||||||
|
run: git checkout ${{ github.event.inputs.branch }}
|
||||||
- uses: ./.github/actions/init
|
- uses: ./.github/actions/init
|
||||||
- name: Initialize configs
|
- name: Initialize configs
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue