Skip to content

Commit a52cbd0

Browse files
committed
human readable size
1 parent 5b73ac6 commit a52cbd0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,15 @@ jobs:
7777
id: artifacts-size-report
7878
if: ${{ matrix.java == '11.0.x' }} # do it once
7979
run: |
80-
echo '## Artifacts Size Report' > report.md
81-
echo '| Module | Version | Size |' >> report.md
80+
echo '## :floppy_disk: Artifacts Size Report' > report.md
81+
echo '| Module | Version | Size (KB) |' >> report.md
8282
echo '| --- | --- | --- |' >> report.md
8383
artifact_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
8484
for artifact in $(cat target/powertools-parent-*.buildinfo | grep 'outputs.*.jar' | grep -v 'sources.jar'); do
8585
artifact_name=$(echo "$artifact" | cut -d '=' -f2)
8686
artifact_name=${artifact_name%-$artifact_version.jar}
8787
artifact_size=$(grep "${artifact%%.filename*}.length" target/powertools-parent-*.buildinfo | cut -d '=' -f2)
88+
artifact_size=$((artifact_size/1000))
8889
echo "| ${artifact_name} | ${artifact_version} | ${artifact_size} |" >> report.md
8990
done
9091
- name: Find potential existing report

0 commit comments

Comments
 (0)