From 613115fca7695753686939d015dd344dc789734d Mon Sep 17 00:00:00 2001 From: Alastair Weakley Date: Tue, 15 Oct 2024 15:59:05 +1100 Subject: [PATCH] Only make coverage comment for pushes to main #67 --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4645d13..09a0526 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,6 +67,7 @@ jobs: - name: Pytest coverage comment id: coverageComment + if: github.event_name == 'push' && github.ref_name == 'main' uses: MishaKav/pytest-coverage-comment@main with: pytest-xml-coverage-path: ./coverage_combined.xml