Skip to content

Commit 6d319b9

Browse files
committed
Correction in Badge update actions
1 parent 856d1bc commit 6d319b9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
run: |
2525
cd Lab1
2626
PCT=$(grep 'Lines executed' coverage_checksum.txt | head -1 | sed -E 's/.*:([0-9.]+)%.*$/\1/')
27-
cd ../../
28-
sed -i 's/badge\/coverage-[0-9]\+\.?[0-9]*%25/badge\/coverage-'"$PCT"'%25/' ../README.md
27+
cd ../
28+
sed -i 's/badge\/coverage-[0-9]\+\.?[0-9]*%25/badge\/coverage-'"$PCT"'%25/' README.md
2929
git config user.name "github-actions[bot]"
3030
git config user.email "github-actions[bot]@users.noreply.github.com"
31-
git add ../README.md
31+
git add README.md
3232
git commit -m "Update coverage badge to $PCT%" || echo "No changes to commit"
3333
git push

0 commit comments

Comments
 (0)