Skip to content

Commit

Permalink
Fix jq syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed May 21, 2024
1 parent dba175c commit 671713f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/analyze-pr-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ jobs:
jq . /tmp/coverage-api-${AFTER_SHA}.json
jq -r --slurp '
jq --slurp '
[ .[].counts ]
| {
covered_before: .[0].covered,
covered_before_pct: .[0].covered_pct,
covered_after: .[1].covered,
covered_after_pct: .[1].covered_pct,
total_to_cover: .[1].covered + .[1].uncovered,
covered_delta: .[1].covered - .[0].covered,
covered_pct_delta: (.[1].covered_pct - .[0].covered_pct) * 100 | round / 100
"covered_before": (.[0].covered),
"covered_before_pct": (.[0].covered_pct),
"covered_after": (.[1].covered),
"covered_after_pct": (.[1].covered_pct),
"total_to_cover": (.[1].covered + .[1].uncovered),
"covered_delta": (.[1].covered - .[0].covered),
"covered_pct_delta": ((.[1].covered_pct - .[0].covered_pct) * 100 | round / 100)
}
' \
/tmp/coverage-api-${BEFORE_SHA}.json \
Expand Down

0 comments on commit 671713f

Please sign in to comment.