Skip to content

Commit 9a36419

Browse files
committed
nuget file size
1 parent 58a9691 commit 9a36419

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish_nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
echo "|---------|------|" >> $GITHUB_STEP_SUMMARY
124124
for f in *.nupkg; do
125125
[ -f "$f" ] || continue
126-
size=$(du -h "$f" | cut -f1)
126+
size=$(numfmt --to=iec --suffix=B --format="%.2f" "$(stat -c %s "$f")")
127127
echo "| \`${f}\` | ${size} |" >> $GITHUB_STEP_SUMMARY
128128
done
129129
echo "" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)