Skip to content

Commit

Permalink
checkout the head of the PR repo (should be fork)
Browse files Browse the repository at this point in the history
  • Loading branch information
alifeee committed Aug 26, 2024
1 parent d2e9921 commit 7cf3703
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pull-request-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.merge_commit_sha }}"
ref: "${{ github.event.pull_request.head.ref }}"
repository: "${{ github.event.pull_request.head.repo.full_name }}"
- uses: actions/setup-node@v3
with:
node-version: 20
Expand Down

0 comments on commit 7cf3703

Please sign in to comment.