We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e06096e commit 6000f54Copy full SHA for 6000f54
.github/workflows/build-notebooks-TEMPLATE.yaml
@@ -48,6 +48,14 @@ jobs:
48
steps:
49
50
- 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"
59
60
- run: mkdir -p $TMPDIR
61
0 commit comments