Skip to content

Commit 84b5553

Browse files
committed
increase badge width and update badge on commit
1 parent 8b45bec commit 84b5553

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/bevy_mod_scripting.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,17 @@ jobs:
7979
uses: actions/upload-artifact@v4
8080
with:
8181
name: code-coverage-report
82-
path: target/coverage/html/
82+
path: target/coverage/html/
83+
- name: Update coverage badge
84+
if: ${{ matrix.run_args.generates_coverage }}
85+
run: |
86+
cp target/coverage/html/badges/for_the_badge.svg badges/coverage.svg
87+
88+
git config user.name "github-actions[bot]"
89+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
90+
git add badges/coverage.svg
91+
92+
if [[ -n $(git status -s) ]]; then
93+
git commit -m "chore(badge): Update coverage badge" -m "[skip ci]"
94+
git push
95+
fi

readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
<img src="./badges/coverage.svg" width="100">
1+
<img src="./badges/coverage.svg" width="175">
2+
3+
---
4+
25
<p align="center">
36
<img src="./logo_bevy_scripting.svg" width="250" onerror="this.onerror=null; this.src='https://raw.githubusercontent.com/makspll/bevy_mod_scripting/main/logo_bevy_scripting.svg'">
47
</p>

0 commit comments

Comments
 (0)