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 fc097cb commit ef0ff4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- name: Update coverage on service
run: |
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 ef0ff4a

Please sign in to comment.