Skip to content

Commit 0a36b67

Browse files
committed
fix: cloudwatch metric chunking
1 parent 4a010ef commit 0a36b67

File tree

1 file changed

+2
-2
lines changed
  • .github/actions/artifact-size-metrics/utils/calculate-and-upload

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ uploadToCloudwatch() {
1313
artifactSize=$(echo "$artifactSize" | xargs)
1414

1515
# Build metric JSON
16-
metrics+=$(jq -n \
16+
metrics+=("jq -n \
1717
--arg name "$GITHUB_REPOSITORY-$artifactName" \
1818
--arg value "$artifactSize" \
1919
--arg project "$GITHUB_REPOSITORY" \
@@ -26,7 +26,7 @@ uploadToCloudwatch() {
2626
{ Name: "Project", Value: $project }
2727
]
2828
}'
29-
)
29+
)")
3030
done < "$metrics_file"
3131

3232
namespace="Artifact Size Metrics"

0 commit comments

Comments
 (0)