Skip to content

Commit cdb01be

Browse files
committed
maybe heredoc will work?
1 parent a8d34b5 commit cdb01be

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,16 @@ runs:
6565
echo -n "$(trim "$PROCESSED")"
6666
}
6767
68+
RAW_DIMENSIONS=$(cat << END_OF_DIMENSIONS
69+
${{ inputs.dimensions }}
70+
END_OF_DIMENSIONS )
71+
RAW_METRICS=$(cat << END_OF_METRICS
72+
${{ inputs.metrics }}
73+
END_OF_METRICS )
74+
6875
NAMESPACE="--namespace \"${{ inputs.namespace }}\""
69-
DIMENSIONS="$(format "--dimension" "${{ inputs.dimensions }}")"
70-
METRICS="$(format "--metric" "${{ inputs.metrics }}")"
76+
DIMENSIONS="$(format "--dimension" "$RAW_DIMENSIONS")"
77+
METRICS="$(format "--metric" "$RAW_METRICS")"
7178
CMD="kat metrics emit $NAMESPACE $DIMENSIONS $METRICS"
7279
7380
echo "Executing command \"$CMD\""

0 commit comments

Comments
 (0)