format coverage badge message to two decimal places

This commit is contained in:
Palash Tyagi 2025-04-20 02:31:58 +01:00
parent 41f404b840
commit 3dd7a65726

View File

@ -55,7 +55,7 @@ jobs:
run: |
jq '{schemaVersion: 1,
label: "tarpaulin",
message: (.coverage | tostring),
message: (printf("%.2f"; .coverage)),
color: "blue"}' tarpaulin-report.json > tarpaulin-badge.json
- name: Copy files to output directory