Skip to content

Commit bc46763

Browse files
authored
fix(ci): check out HEAD of PR when building documentation (#10416)
Signed-off-by: Jon Koops <[email protected]>
1 parent 991c7b9 commit bc46763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
# Checkout the merge commit so that we can access the PR's changes.
2727
# This is nessesary because `pull_request_target` checks out the base branch (e.g. `main`) by default.
28-
ref: ${{ github.event.pull_request.merge_commit_sha }}
28+
ref: refs/pull/${{ env.GH_PR_NUM }}/head
2929

3030
- name: Check out project
3131
if: github.event_name != 'pull_request_target'

0 commit comments

Comments
 (0)