Skip to content

Commit c326b64

Browse files
committed
Checkout PR head commit.
1 parent 9f5ede0 commit c326b64

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ jobs:
3131
name: check (${{ matrix.platform }})
3232

3333
steps:
34+
# Check out the PR head commit (not the merge ref) so that
35+
# check:minilints can verify the commit author is in CONTRIBUTORS.
36+
# The default merge ref author is GitHub, not the PR author.
3437
- uses: actions/checkout@v4
38+
with:
39+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
3540
- name: Restore cargo cache
3641
uses: actions/cache@v4
3742
with:

0 commit comments

Comments
 (0)