From 9ea1d1c581020371f02d6e32728267157d0d0250 Mon Sep 17 00:00:00 2001 From: alina sireneva Date: Sat, 27 Apr 2024 11:14:52 +0300 Subject: [PATCH] ci: run release from non-main branch --- .github/workflows/release.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index cbed3760..f86b8747 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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: |