Skip to content

Commit 8b11042

Browse files
Merge #279
279: Fix Clippy git ref again r=adamgreig a=jonas-schievink Co-authored-by: Jonas Schievink <[email protected]>
2 parents a1afb64 + 649fd20 commit 8b11042

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/clippy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12+
if: github.event_name == 'pull_request_target'
1213
with:
13-
ref: ${{ github.head_ref || github.ref }}
14+
ref: refs/pull/${{ github.event.number }}/head
15+
- uses: actions/checkout@v2
16+
if: github.event_name != 'pull_request_target'
1417
- uses: actions-rs/toolchain@v1
1518
with:
1619
profile: minimal

0 commit comments

Comments
 (0)