From de276af9c633868a6c83e3d58e436ed68f173e8d Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Fri, 14 Feb 2020 07:27:35 +0900 Subject: [PATCH] Disable coverage for PRs --- .github/workflows/linux.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 280e2a8cf..b268a3f21 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -65,13 +65,13 @@ jobs: args: --all --all-features --no-fail-fast -- --nocapture - name: Generate coverage file - if: matrix.version == 'stable' && (github.ref == 'master' || github.event_name == 'pull_request') + if: matrix.version == 'stable' && github.ref == 'refs/heads/master' run: | cargo install cargo-tarpaulin cargo tarpaulin --out Xml --workspace --all-features - name: Upload to Codecov - if: matrix.version == 'stable' && (github.ref == 'master' || github.event_name == 'pull_request') + if: matrix.version == 'stable' && github.ref == 'refs/heads/master' uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }}