File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,15 @@ jobs:
71
71
id : artifacts-size-report
72
72
if : ${{ matrix.java == '11.0.x' }} # do it once
73
73
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
76
76
echo '| --- | --- | --- |' >> report.md
77
77
artifact_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
78
78
for artifact in $(cat target/powertools-parent-*.buildinfo | grep 'outputs.*.jar' | grep -v 'sources.jar'); do
79
79
artifact_name=$(echo "$artifact" | cut -d '=' -f2)
80
80
artifact_name=${artifact_name%-$artifact_version.jar}
81
81
artifact_size=$(grep "${artifact%%.filename*}.length" target/powertools-parent-*.buildinfo | cut -d '=' -f2)
82
+ artifact_size=$((artifact_size/1000))
82
83
echo "| ${artifact_name} | ${artifact_version} | ${artifact_size} |" >> report.md
83
84
done
84
85
- name : Find potential existing report
You can’t perform that action at this time.
0 commit comments