Skip to content

Commit b5dce2c

Browse files
committed
conditionally auto commit badges
1 parent b5ca56f commit b5dce2c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ jobs:
8585
git config --global user.name 'github-actions'
8686
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
8787
git add *.svg
88-
git commit -m "Autogenerated JaCoCo coverage badge"
89-
git push
88+
git add *.json
89+
if ! git diff --cached --quiet; then
90+
git commit -m "Update coverage badges for all modules"
91+
git push
92+
fi
9093
fi

0 commit comments

Comments
 (0)