Skip to content

Commit

Permalink
Update the jacoco
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthakn7 committed Oct 4, 2024
1 parent d1ef31c commit 0b6937b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ jobs:
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
- name: Commit and push badge
if: ${{ github.event_name == 'pull_request' }}
run: |
cd .github/badges
if [[ `git status --porcelain *.svg` ]]; then
git config --global user.name github_actions
git add *.svg
git commit -m "Autogenerated JaCoCo coverage badge" *.svg
git pull --rebase origin ${{ inputs.branch }}
git push
fi
- name: Upload JaCoCo coverage report
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 0b6937b

Please sign in to comment.