Skip to content

Commit 80556c5

Browse files
committed
fix: make release base branch configurable via reusable workflow input
1 parent 86c093b commit 80556c5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/prepare-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ permissions:
1212
jobs:
1313
call-prepare:
1414
uses: leoweyr/github-release-workflow/.github/workflows/reusable-prepare-release.yml@develop
15+
with:
16+
base-branch: 'master'
1517
secrets:
1618
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/reusable-prepare-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
required: false
99
type: string
1010
default: '20'
11+
base-branch:
12+
description: 'Base branch name for release pull requests.'
13+
required: false
14+
type: string
15+
default: 'master'
1116
commit-user-name:
1217
description: 'Git user name for commit'
1318
required: false
@@ -95,5 +100,5 @@ jobs:
95100
gh pr create \
96101
--title "release: ${{ env.TAG_NAME }}" \
97102
--body-file pr_body_cleaned.md \
98-
--base master \
103+
--base ${{ inputs.base-branch }} \
99104
--head release/${{ env.TAG_NAME }}

0 commit comments

Comments
 (0)