Skip to content

Commit 15c8189

Browse files
committed
move inner quoting to format function
1 parent d0e18e7 commit 15c8189

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/actions/emit-metrics/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ runs:
6060
PROCESSED=""
6161
IFS=$'\n'; ARR=($2); unset IFS
6262
for ITEM in "${ARR[@]}"; do
63-
PROCESSED="$PROCESSED $1 $(trim "$ITEM")"
63+
PROCESSED="$PROCESSED $1 \"$(trim "$ITEM")\""
6464
done
6565
echo -n "$(trim "$PROCESSED")"
6666
}
6767
6868
NAMESPACE="--namespace \"${{ inputs.namespace }}\""
69-
DIMENSIONS="$(format "--dimension" "\"${{ inputs.dimensions }}\"")"
70-
METRICS="$(format "--metric" "\"${{ inputs.metrics }}\"")"
69+
DIMENSIONS="$(format "--dimension" "${{ inputs.dimensions }}")"
70+
METRICS="$(format "--metric" "${{ inputs.metrics }}")"
7171
CMD="kat metrics emit $NAMESPACE $DIMENSIONS $METRICS"
7272
7373
echo "Executing command \"$CMD\""

0 commit comments

Comments
 (0)