Skip to content

Commit a3c5a5b

Browse files
committed
fix report content
1 parent ab5d1c0 commit a3c5a5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)