Skip to content

Commit

Permalink
ci: try different action to push the Jacoco report badge
Browse files Browse the repository at this point in the history
  • Loading branch information
1abhishekpandey committed Dec 11, 2022
1 parent 77295d4 commit 8f50972
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/build-and-quality-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,21 @@ jobs:
generate-summary: true
jacoco-csv-file: analytics-cli/target/site/jacoco-aggregate/jacoco.csv

- name: Commit and push the badge (if it changed)
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: 'commit badge'
add: '*.svg'
- name: Commit the badge (if it changed)
run: |
if [[ `git status --porcelain` ]]; then
# git config --global user.name 'YOUR NAME HERE'
# git config --global user.email 'YOUR-GITHUB-USERID@users.noreply.github.com'
git add -A
git commit -m "Autogenerated JaCoCo coverage badge"
git push
fi
# - name: Commit and push the badge (if it changed)
# uses: EndBug/add-and-commit@v9
# with:
# default_author: github_actions
# message: 'commit badge'
# add: '*.svg'

- name: Upload coverage report
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 8f50972

Please sign in to comment.