mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-03 12:48:52 -06:00
Allow releasing from a branch other than master
This is useful for cutting a patch release for the previous version when master already contains work that shouldn't be released yet; for example, v0.63.1 had to be tagged and released by hand from a v0.63.1 branch off the v0.63.0 tag because the workflow could only release master. Scheduled runs are unaffected: with no input provided, the ref is empty and the checkout falls back to the default branch.
This commit is contained in:
1 parent
dda0af0f48
commit
1d99ba56fc
1 file changed
+6
@@ -17,6 +17,11 @@ on:
|
||||
options:
|
||||
- minor
|
||||
- patch
|
||||
branch:
|
||||
description: 'Branch to release from'
|
||||
type: string
|
||||
required: true
|
||||
default: 'master'
|
||||
ignore_blocks:
|
||||
description: 'Ignore blocking PRs/issues'
|
||||
type: boolean
|
||||
@@ -49,6 +54,7 @@ jobs:
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
repository: jesseduffield/lazygit
|
||||
ref: ${{ inputs.branch }}
|
||||
token: ${{ secrets.LAZYGIT_RELEASE_PAT }}
|
||||
fetch-depth: 0
|
||||
|
||||
|
||||
Reference in new issue
Block a user