Skip to content

Commit 03db8a5

Browse files
CI: Update pluslib-repository to clone PR repo
1 parent 00321ff commit 03db8a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
pltools-access-token: ${{ secrets.PLTOOLS_ACCESS_TOKEN }}
117117
with:
118118
arch: ${{ matrix.arch }}
119-
pluslib-repository: https://github.com/${{ github.repository }}.git
119+
pluslib-repository: https://github.com/${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }}.git
120120
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 }}
@@ -154,7 +154,7 @@ jobs:
154154
pltools-access-token: ${{ secrets.PLTOOLS_ACCESS_TOKEN }}
155155
with:
156156
arch: Win32
157-
pluslib-repository: https://github.com/${{ github.repository }}.git
157+
pluslib-repository: https://github.com/${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }}.git
158158
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 }}
@@ -196,7 +196,7 @@ jobs:
196196
pltools-access-token: ${{ secrets.PLTOOLS_ACCESS_TOKEN }}
197197
with:
198198
arch: ${{ matrix.arch }}
199-
pluslib-repository: https://github.com/${{ github.repository }}.git
199+
pluslib-repository: https://github.com/${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }}.git
200200
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 }}

0 commit comments

Comments
 (0)