Skip to content

Commit

Permalink
checkout the PR merge commit ref
Browse files Browse the repository at this point in the history
on.pull_request_target uses main by default here, different from on.pull_request which uses the PR ref

see actions/checkout#518 (comment)
  • Loading branch information
thekaveman authored Mar 17, 2022
1 parent 9a59416 commit 869399d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/mkdocs-pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: "refs/pull/${{ github.event.number }}/merge"

- name: Setup Python
uses: actions/setup-python@v2
Expand Down

0 comments on commit 869399d

Please sign in to comment.