diff options
author | ClementTsang <34804052+ClementTsang@users.noreply.github.com> | 2023-01-23 19:35:54 -0500 |
---|---|---|
committer | ClementTsang <34804052+ClementTsang@users.noreply.github.com> | 2023-01-23 19:35:54 -0500 |
commit | ea11be9cfc905b6e81342f255e1068821b2ae3a2 (patch) | |
tree | 2b6c056775f9901aa33708e5a6b418cd0ecff4a9 | |
parent | 00d60d8d45fce56f91a0c38c7a427a9977a5043c (diff) |
ci: don't cache coverage in some cases
-rw-r--r-- | .github/workflows/coverage.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index fef57635..b8415a34 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -45,6 +45,7 @@ jobs: - name: Enable Rust cache uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # 2.2.0 + if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork - name: Install cargo-llvm-cov run: | |