From f9fffc124424ef872c27614dd41cb4b0a4b31a95 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 9 Sep 2024 19:36:53 +0300 Subject: [PATCH] Don't submit coverage on any pull requests --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d7ec18..ae89801 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: #./grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --keep-only 'repology-*/*' --ignore '**/tests.rs' --ignore '*/tests/*.rs' -o coverage.lcov ./grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --keep-only 'repology-*/*' -o coverage.lcov - name: Submit coverage - if: ${{ github.actor != 'dependabot[bot]' }} + if: ${{ github.actor != 'dependabot[bot]' && github.event_name != 'pull_request' }} uses: codecov/codecov-action@v4 with: fail_ci_if_error: true