From 030fb67d6432a015bfb31efbcc559460d0085d9a Mon Sep 17 00:00:00 2001 From: Oliver Gould Date: Tue, 19 Mar 2024 19:35:51 +0000 Subject: [PATCH] ci: Avoid needlessly running coverage builds --- .github/workflows/coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 0478d4a129..e784ed7430 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -39,7 +39,7 @@ jobs: codecov: needs: meta - if: github.event_name == 'push' || needs.meta.outputs.any_changed == 'true' + if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || needs.meta.outputs.any_changed == 'true' runs-on: ubuntu-latest timeout-minutes: 30 container: