Skip to content

Commit c2d5afe

Browse files
committed
reusable-build-and-push.yml: use the source branch to build the images for a pr
Else use the HEAD of the current branch. We did not see this when writing/reviewing the pr. See https://github.com/ecamp/ecamp3/pull/7898/files#r2319901379
1 parent 97c5783 commit c2d5afe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/reusable-build-and-push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
return context.repo.owner.toLowerCase()
4141
4242
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
43+
with:
44+
ref: ${{ inputs.sha }}
4345

4446
- name: Set nightly tag if commit was on main
4547
id: add-nightly-tag
@@ -122,6 +124,7 @@ jobs:
122124
steps:
123125
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
124126
with:
127+
ref: ${{ inputs.sha }}
125128
fetch-depth: 100
126129

127130
- run: |

0 commit comments

Comments
 (0)