From 0d6ac5adc5b224d5f09f564fac5fe49a2aca3c1c Mon Sep 17 00:00:00 2001 From: mozzy11 Date: Mon, 4 Nov 2024 22:30:32 +0300 Subject: [PATCH] only deploy badge on push --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d5a9472b2..2f6e116231 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,12 +41,14 @@ jobs: run: mvn clean install -Dspotless.check.skip=true - name: Generate JaCoCo Badge + if: github.event_name == 'push' uses: cicirello/jacoco-badge-generator@v2 with: jacoco-csv-file: target/site/jacoco/jacoco.csv badges-directory: target/html/badges - name: Publish coverage report to GitHub Pages + if: github.event_name == 'push' uses: JamesIves/github-pages-deploy-action@v4 with: folder: target/html/