Skip to content

Commit b9e67c6

Browse files
authored
[#258] Cleanup CI and Test Badge Creation
1 parent 507b692 commit b9e67c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/mc_dc_coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ jobs:
7777
curl -o coverage/line-coverage-badge.svg "https://img.shields.io/badge/line%20coverage-${LINE_COVERAGE_PERCENT}%25-brightgreen"
7878
curl -o coverage/branch-coverage-badge.svg "https://img.shields.io/badge/branch%20coverage-${BRANCH_COVERAGE_PERCENT}%25-brightgreen"
7979
80-
# Step 7: Commit Badges to the Current Branch
80+
# Step 7: Commit Badges to the Current Branch
8181
- name: Commit Coverage Badges
8282
run: |
8383
git config user.name "github-actions"
8484
git config user.email "actions@github.com"
8585
git add coverage/line-coverage-badge.svg
8686
git add coverage/branch-coverage-badge.svg
87-
git commit -m "Update coverage badges"
87+
git commit -m "Update coverage badges" || echo "No changes to commit"
8888
git push origin HEAD
8989
9090
# Step 8: Upload Coverage Report

0 commit comments

Comments
 (0)