Skip to content

Commit 6340713

Browse files
committed
human readable size
1 parent 96d218d commit 6340713

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
@@ -71,14 +71,15 @@ jobs:
7171
id: artifacts-size-report
7272
if: ${{ matrix.java == '11.0.x' }} # do it once
7373
run: |
74-
echo '## Artifacts Size Report' > report.md
75-
echo '| Module | Version | Size |' >> report.md
74+
echo '## :floppy_disk: Artifacts Size Report' > report.md
75+
echo '| Module | Version | Size (KB) |' >> report.md
7676
echo '| --- | --- | --- |' >> report.md
7777
artifact_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
7878
for artifact in $(cat target/powertools-parent-*.buildinfo | grep 'outputs.*.jar' | grep -v 'sources.jar'); do
7979
artifact_name=$(echo "$artifact" | cut -d '=' -f2)
8080
artifact_name=${artifact_name%-$artifact_version.jar}
8181
artifact_size=$(grep "${artifact%%.filename*}.length" target/powertools-parent-*.buildinfo | cut -d '=' -f2)
82+
artifact_size=$((artifact_size/1000))
8283
echo "| ${artifact_name} | ${artifact_version} | ${artifact_size} |" >> report.md
8384
done
8485
- name: Find potential existing report

0 commit comments

Comments
 (0)