ci: run release from non-main branch

This commit is contained in:
alina 🌸 2024-04-27 11:14:52 +03:00
parent 20e27070dc
commit 9ea1d1c581
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -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: |