File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,12 +75,12 @@ jobs:
7575 report+='| Module | Version | Size |\n'
7676 report+='| --- | --- | --- |\n'
7777 artifact_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
78- grep 'outputs.*.jar' target/powertools-parent-*.buildinfo | grep -v 'sources. jar' | while IFS= read -r artifact ; do
78+ 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)
8282 echo "$artifact_name = $artifact_size"
83- report+="\ | ${artifact_name} \ | ${artifact_version} \ | ${artifact_size} \ |\n"
83+ report+="| ${artifact_name} | ${artifact_version} | ${artifact_size} |\n"
8484 done
8585 echo "ARTIFACT_REPORT=$report" >> "$GITHUB_OUTPUT"
8686 - name : Comment artifacts size report
You can’t perform that action at this time.
0 commit comments