Skip to content

Commit

Permalink
Update test-coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mrugama authored Feb 16, 2025
1 parent 6485b3d commit 7b49eee
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,10 @@ jobs:
echo "---" >> coverage_section.md
echo "" >> coverage_section.md
# Remove the existing "Test Coverage" section from README
# Remove the entire "Test Coverage" section including its content
awk '
BEGIN {delete = 0}
/^## Test Coverage/ {delete = 1; next} # Start deleting at "## Test Coverage"
/^## / && delete {delete = 0} # Stop deleting at the next header
!delete' README.md > README.tmp
/## Test Coverage/,/^## / { next }
{ print }' README.md > README.tmp
# Add the new "Test Coverage" section content from coverage_section.md
cat coverage_section.md >> README.tmp
Expand Down

0 comments on commit 7b49eee

Please sign in to comment.