diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 61cad2d..cb94f02 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -31,6 +31,7 @@ jobs: jacoco-csv-file: build/reports/jacoco/test/jacocoTestReport.csv - name: Commit and push the badge (if it changed) + if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: EndBug/add-and-commit@v7 with: default_author: github_actions