Skip to content

Commit 0f0191c

Browse files
committed
fix: regex
1 parent e624d97 commit 0f0191c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ calculateArtifactSizes() {
1818

1919
# remove dir path, version, optional timestamp, and .jar
2020
artifact=$(basename "$jar")
21-
artifact=$(echo "$artifact" | sed -E 's/-[0-9]+(\.[0-9]+)*(-[0-9]{8}\.[0-9]+-[0-9]+)?(-SNAPSHOT)?\.jar$//')
21+
artifact=$(echo "$artifact" | sed -E 's/\.jar$//; s/-[0-9]+(\.[0-9]+)*(-[0-9]{8}\.[0-9]+-[0-9]+)?(-SNAPSHOT)?//')
2222

2323
# Add artifact size to CSV
2424
echo "$artifact, $size" >> "$output_file"

0 commit comments

Comments
 (0)