Skip to content

Commit

Permalink
Push JaCoCo badges on main branch build
Browse files Browse the repository at this point in the history
  • Loading branch information
dheid committed Nov 3, 2023
1 parent e2fb8d6 commit 0a1797a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,12 @@ jobs:
min-coverage-overall: 80
min-coverage-changed-files: 80
- uses: cicirello/[email protected]

- 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 "[email protected]"
git add -A
git commit -m "Autogenerated JaCoCo coverage badge"
git push
fi

0 comments on commit 0a1797a

Please sign in to comment.