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
|
||||
- minor
|
||||
- patch
|
||||
branch:
|
||||
description: 'Branch to release from'
|
||||
required: true
|
||||
default: 'master'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
|
@ -29,6 +33,8 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.BOT_PAT }}
|
||||
- if: ${{ github.event.inputs.branch != 'master' }}
|
||||
run: git checkout ${{ github.event.inputs.branch }}
|
||||
- uses: ./.github/actions/init
|
||||
- name: Initialize configs
|
||||
run: |
|
||||
|
|
Loading…
Reference in a new issue