Skip to content

Commit

Permalink
pull request target does not refer to the PR head
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVCaron committed Feb 13, 2024
1 parent b29d312 commit 504199e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ jobs:
test:
runs-on: scilus-runners
steps:
- name: Checkout repository
- name: Checkout repository for PR
if: github.event.pull_request.number
uses: actions/[email protected]
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge

- name: Checkout repository for merge
if: ! github.event.pull_request.number
uses: actions/[email protected]

- name: Fetch python version from repository
Expand Down

0 comments on commit 504199e

Please sign in to comment.