Skip to content

Commit

Permalink
chore: Update test results badge path in dotnetcore.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Puchaczov committed Jun 22, 2024
1 parent 385830b commit 4ea1abc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,17 @@ jobs:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
shell: bash
run: |
curl -o tests-badge.svg "https://img.shields.io/badge/tests-${{ steps.parse.outputs.total }}%20%2F%20${{ steps.parse.outputs.passed }}-green"
curl -o tests-badge.svg "https://img.shields.io/badge/tests-$passed%2F$total-green"
- name: Commit badge
shell: bash
if: "!contains(github.event.head_commit.message, '[skip ci]')"
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
rm ./badges/tests-badge.svg
mkdir -p badges
rm -f badges/tests-badge.svg
mv tests-badge.svg badges/tests-badge.svg
git add badges/tests-badge.svg
git add badges/tests-badge.svg README.md
git commit -m "Update test results badge [skip ci]"
git push
- name: Publish
Expand Down

0 comments on commit 4ea1abc

Please sign in to comment.