Skip to content

Commit

Permalink
fix: grep command to get only first number
Browse files Browse the repository at this point in the history
  • Loading branch information
iurynogueira committed Nov 30, 2023
1 parent f29b840 commit fc097cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
npm install
npm run test:coverage
coverage=$(grep -oP "(?<=<span class=\"strong\">)[^<]+" coverage/lcov-report/index.html | tr -d '%')
coverage=$(grep -oP "(?<=<span class=\"strong\">)[0-9]+(\.[0-9]+)?" coverage/lcov-report/index.html | head -n 1)
curl -X PUT \
-H "Content-Type: application/json" \
Expand Down

0 comments on commit fc097cb

Please sign in to comment.