Skip to content

Commit 6000f54

Browse files
committed
checkout new pr
1 parent e06096e commit 6000f54

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-notebooks-TEMPLATE.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ jobs:
4848
steps:
4949

5050
- uses: actions/checkout@v4
51+
if: ${{ !fromJson(inputs.github).event_name == 'pull_request_target' }}
52+
53+
# we need to checkout the pr branch, not pr target (the default)
54+
# user access check is done in calling workflow
55+
- uses: actions/checkout@v4
56+
if: ${{ fromJson(inputs.github).event_name == 'pull_request_target' }}
57+
with:
58+
ref: "refs/pull/${{ fromJson(inputs.github).event.number }}/merge"
5159

5260
- run: mkdir -p $TMPDIR
5361

0 commit comments

Comments
 (0)