File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments