Skip to content

Commit d0e18e7

Browse files
committed
getting rid of heredoc reformatting
1 parent fe4c3c8 commit d0e18e7

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

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

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,9 @@ runs:
6565
echo -n "$(trim "$PROCESSED")"
6666
}
6767
68-
RAW_DIMENSIONS=$(cat <<'END_OF_DIMENSIONS'
69-
${{ inputs.dimensions }}
70-
END_OF_DIMENSIONS
71-
)
72-
echo "RAW_DIMENSIONS: \"$RAW_DIMENSIONS\""
73-
74-
RAW_METRICS=$(cat <<'END_OF_METRICS'
75-
${{ inputs.metrics }}
76-
END_OF_METRICS
77-
)
78-
echo "RAW_METRICS: \"$RAW_METRICS\""
79-
8068
NAMESPACE="--namespace \"${{ inputs.namespace }}\""
81-
DIMENSIONS="$(format "--dimension" "$RAW_DIMENSIONS")"
82-
METRICS="$(format "--metric" "$RAW_METRICS")"
69+
DIMENSIONS="$(format "--dimension" "\"${{ inputs.dimensions }}\"")"
70+
METRICS="$(format "--metric" "\"${{ inputs.metrics }}\"")"
8371
CMD="kat metrics emit $NAMESPACE $DIMENSIONS $METRICS"
8472
8573
echo "Executing command \"$CMD\""

0 commit comments

Comments
 (0)