diff --git a/comment_on_pr.sh b/comment_on_pr.sh index 7edb23f..0c72671 100755 --- a/comment_on_pr.sh +++ b/comment_on_pr.sh @@ -13,7 +13,7 @@ util_path="${GITHUB_ACTION_PATH:-.}/utils.sh" json_to_md_rows() { jq --raw-output \ ".$1[]"' | "| `\(.name)` | \(.size) | \(.narSize) |"' "$2" | - numfmt --to=iec-i --field=4,6 + numfmt --suffix=B --to=iec-i --field=4,6 } # USAGE: json_to_md_rows [JSON_FILE] @@ -22,7 +22,7 @@ json_to_md_rows() { json_to_md_rows_and_change() { jq --raw-output \ ".$1[]"' | "| `\(.name)` | \(.size) | \(.sizeChange) | \(.narSize) | \(.narSizeChange) |"' | - numfmt --to=iec-i --field=4,6,8,10 + numfmt --suffix=B --to=iec-i --field=4,6,8,10 } # USAGE: has_elements