diff options
author | 2020-10-27 00:57:07 +0100 | |
---|---|---|
committer | 2020-10-27 00:57:07 +0100 | |
commit | 9e2f1a2ce339ad1a663bc1a497a507846c4f6d02 (patch) | |
tree | fd437206dc6c85544060ad15b5ae374d9175f976 | |
parent | a1afb64c0a55716ee729a1c99040e397ba7e998c (diff) | |
download | cortex-m-9e2f1a2ce339ad1a663bc1a497a507846c4f6d02.tar.gz cortex-m-9e2f1a2ce339ad1a663bc1a497a507846c4f6d02.tar.zst cortex-m-9e2f1a2ce339ad1a663bc1a497a507846c4f6d02.zip |
Fix Clippy ref yet again
-rw-r--r-- | .github/workflows/clippy.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index a708f5b..840e0aa 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -9,8 +9,13 @@ 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' + with: + ref: ${{ github.head_ref }} - uses: actions-rs/toolchain@v1 with: profile: minimal |