Skip to content

Commit

Permalink
add workflow for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
micha37-martins committed Aug 22, 2024
1 parent f51e3e1 commit 7beae41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/github-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
echo "Extracted coverage percentage: $coverage"
echo "::set-output name=coverage::$coverage"
- name: Configure Git Safe Directory
run: |
git config --global --add safe.directory /__w/${{ github.repository }}/__w/${{ github.repository }}
- name: Update README.md with coverage badge
run: |
sed -i 's|\[!\[Coverage\](https://img.shields.io/badge/Coverage-[0-9]*%25-brightgreen)\]|[!\[Coverage\](https://img.shields.io/badge/Coverage-${{ steps.coverage.outputs.coverage }}%25-brightgreen)]|' README.md
Expand Down

0 comments on commit 7beae41

Please sign in to comment.