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 024f3c4 commit c77a2c5Copy full SHA for c77a2c5
.github/actions/artifact-size-metrics/utils/calculate-and-upload/cloudwatch.sh
@@ -13,7 +13,7 @@ uploadToCloudwatch() {
13
artifactSize=$(echo "$artifactSize" | xargs)
14
15
# Build metric JSON
16
- metrics+=$(jq -n \
+ metric_json=$(jq -n \
17
--arg name "$GITHUB_REPOSITORY-$artifactName" \
18
--arg value "$artifactSize" \
19
--arg project "$GITHUB_REPOSITORY" \
@@ -25,8 +25,9 @@ uploadToCloudwatch() {
25
Dimensions: [
26
{ Name: "Project", Value: $project }
27
]
28
- }'
29
- )
+ }')
+
30
+ metrics+=("$metric_json")
31
done < "$metrics_file"
32
33
namespace="Artifact Size Metrics"
0 commit comments