Skip to content

Commit 547cd83

Browse files
Merge pull request #127 from StabilityNexus/chore/ci-setup
fix the badge
2 parents 12bf2b1 + 3a0eef3 commit 547cd83

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/update-badge.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ jobs:
4040

4141
- name: Update README
4242
run: |
43-
sed -i '/<!-- Pytest Coverage Comment:Begin -->/,/<!-- Pytest Coverage Comment:End -->/c\<!-- Pytest Coverage Comment:Begin -->\n![Coverage](https://img.shields.io/badge/Coverage-${{ steps.coverage.outputs.coverage }}%25-${{ steps.coverage.outputs.color }}?style=for-the-badge)\n<!-- Pytest Coverage Comment:End -->' ./README.md
43+
BADGE='${{ steps.coverage.outputs.coverageHtml }}'
44+
BADGE="${BADGE/.svg/.svg?style=for-the-badge}"
45+
sed -i "/<!-- Pytest Coverage Comment:Begin -->/,/<!-- Pytest Coverage Comment:End -->/c\<!-- Pytest Coverage Comment:Begin -->\n$BADGE\n<!-- Pytest Coverage Comment:End -->" ./README.md
4446
4547
- name: Commit changes
4648
uses: stefanzweifel/git-auto-commit-action@v5

0 commit comments

Comments
 (0)