Skip to content

Commit 37edddb

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/documentation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ 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
29+
30+
- run: git log --oneline -n 5
2931

3032
- name: Check out project
3133
if: github.event_name != 'pull_request_target'

0 commit comments

Comments
 (0)