Skip to content

Commit 95e318c

Browse files
weiji14Meghan Jones
and
Meghan Jones
committed
Checkout Pull Request's head commit instead of merge commit
Co-Authored-By: Meghan Jones <[email protected]>
1 parent 1632c4d commit 95e318c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci_tests_dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
with:
6868
token: ${{ steps.generate-token.outputs.token }}
6969
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
70-
ref: ${{ github.event.client_payload.pull_request.head.ref }}
70+
ref: ${{ github.event.pull_request.head.sha }}
7171
# fecth all history so that setuptools-scm works
7272
fetch-depth: 0
7373

.github/workflows/format-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
token: ${{ steps.generate-token.outputs.token }}
2020
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
21-
ref: ${{ github.event.client_payload.pull_request.head.ref }}
21+
ref: ${{ github.event.pull_request.head.sha }}
2222

2323
# Setup Python environment
2424
- uses: actions/[email protected]

0 commit comments

Comments
 (0)