Skip to content

Commit 132decf

Browse files
committed
ensure checkout uses inputs.releaseBranch in release branch workflow
1 parent fb87b02 commit 132decf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release-branch.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ jobs:
7373
steps:
7474
- name: Checkout Repository
7575
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
76+
with:
77+
ref: ${{ inputs.releaseBranch }}
7678

7779
- name: Set variables
7880
id: vars
@@ -96,6 +98,8 @@ jobs:
9698
- name: Checkout Repository
9799
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
98100
if: ${{ needs.vars.outputs.github_release == 'true' }}
101+
with:
102+
ref: ${{ inputs.releaseBranch }}
99103

100104
- name: Create Draft Release
101105
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
@@ -190,6 +194,8 @@ jobs:
190194
- name: Checkout Repository
191195
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
192196
if: ${{ needs.vars.outputs.tag_release == 'true' }}
197+
with:
198+
ref: ${{ inputs.releaseBranch }}
193199

194200
- name: Tag release
195201
if: ${{ needs.vars.outputs.tag_release == 'true' }}
@@ -209,6 +215,8 @@ jobs:
209215
steps:
210216
- name: Checkout Repository
211217
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
218+
with:
219+
ref: ${{ inputs.releaseBranch }}
212220

213221
- name: Setup go
214222
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0

0 commit comments

Comments
 (0)