Skip to content

Commit 9e2f1a2

Browse files
Fix Clippy ref yet again
1 parent a1afb64 commit 9e2f1a2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/clippy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ 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'
17+
with:
18+
ref: ${{ github.head_ref }}
1419
- uses: actions-rs/toolchain@v1
1520
with:
1621
profile: minimal

0 commit comments

Comments
 (0)