Skip to content

Commit 2b94767

Browse files
committed
rename artifacts
1 parent 4fb170b commit 2b94767

File tree

1 file changed

+3
-1
lines changed
  • .github/actions/artifact-size-metrics/utils/build-and-upload

1 file changed

+3
-1
lines changed

.github/actions/artifact-size-metrics/utils/build-and-upload/metrics.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ getArtifactSizes() {
1212
# TODO: Calculate KN artifacts sizes
1313
find build/m2 -type f -name "*.jar" ! -name "*-sources.jar" ! -name "*-javadoc.jar" | while read -r jar; do
1414
size=$(stat -c%s "$jar")
15-
echo "\"$jar\",$size" >> "$output"
15+
# strip "-<version>(-timestamp?)" before ".jar"
16+
artifact=$(echo "$jar" | sed -E 's/-[0-9]+(\.[0-9]+)*(-[0-9]{8}\.[0-9]{6}-[0-9]+)?\.jar$/.jar/')
17+
echo "\"$artifact\",$size" >> "$output"
1618
done
1719
}

0 commit comments

Comments
 (0)