From 0a1797aaf0209cc9c45f3d0252934252305164f7 Mon Sep 17 00:00:00 2001 From: Daniel Heid Date: Fri, 3 Nov 2023 10:47:27 +0100 Subject: [PATCH] Push JaCoCo badges on main branch build --- .github/workflows/build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f62bdf95..8e23e7d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,4 +26,12 @@ jobs: min-coverage-overall: 80 min-coverage-changed-files: 80 - uses: cicirello/jacoco-badge-generator@v2.11.0 - + - if: github.ref == 'refs/heads/main' + run: | + if [[ `git status --porcelain` ]]; then + git config --global user.name "Matomo Java Tracker" + git config --global user.email "matomo-java-tracker@daniel-heid.de" + git add -A + git commit -m "Autogenerated JaCoCo coverage badge" + git push + fi