We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fb170b commit 2b94767Copy full SHA for 2b94767
.github/actions/artifact-size-metrics/utils/build-and-upload/metrics.sh
@@ -12,6 +12,8 @@ getArtifactSizes() {
12
# TODO: Calculate KN artifacts sizes
13
find build/m2 -type f -name "*.jar" ! -name "*-sources.jar" ! -name "*-javadoc.jar" | while read -r jar; do
14
size=$(stat -c%s "$jar")
15
- echo "\"$jar\",$size" >> "$output"
+ # 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"
18
done
19
}
0 commit comments