diff options
-rw-r--r-- | .github/workflows/clippy.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index a708f5b..d55d697 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -9,8 +9,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + if: github.event_name == 'pull_request_target' with: - ref: ${{ github.head_ref || github.ref }} + ref: refs/pull/${{ github.event.number }}/head + - uses: actions/checkout@v2 + if: github.event_name != 'pull_request_target' - uses: actions-rs/toolchain@v1 with: profile: minimal |