Skip to content

Commit 00321ff

Browse files
CI: Use head sha for pull_request triggers
1 parent 16f72b7 commit 00321ff

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
with:
118118
arch: ${{ matrix.arch }}
119119
pluslib-repository: https://github.com/${{ github.repository }}.git
120-
pluslib-tag: ${{ github.sha }}
120+
pluslib-tag: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
121121
vtk-cache-key: ${{ needs.update_vtk_x64.outputs.cache-key }}
122122
itk-cache-key: ${{ needs.update_itk_x64.outputs.cache-key }}
123123
archive-name: PlusApp-Win64
@@ -155,7 +155,7 @@ jobs:
155155
with:
156156
arch: Win32
157157
pluslib-repository: https://github.com/${{ github.repository }}.git
158-
pluslib-tag: ${{ github.sha }}
158+
pluslib-tag: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
159159
vtk-cache-key: ${{ needs.update_vtk_Win32.outputs.cache-key }}
160160
itk-cache-key: ${{ needs.update_itk_Win32.outputs.cache-key }}
161161
archive-name: PlusApp-Win32
@@ -197,7 +197,7 @@ jobs:
197197
with:
198198
arch: ${{ matrix.arch }}
199199
pluslib-repository: https://github.com/${{ github.repository }}.git
200-
pluslib-tag: ${{ github.sha }}
200+
pluslib-tag: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
201201
vtk-cache-key: ${{ needs.update_vtk_static_x64.outputs.cache-key }}
202202
itk-cache-key: ${{ needs.update_itk_static_x64.outputs.cache-key }}
203203
archive-name: PlusApp-Static-Win64

0 commit comments

Comments
 (0)