From a3b266ad260724405c87a3df9a3218ff4d785e35 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Fri, 11 Aug 2023 13:19:15 +0300 Subject: [PATCH] quote message --- action.yaml | 2 +- push_template.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/action.yaml b/action.yaml index 0730ba0..1c0448b 100644 --- a/action.yaml +++ b/action.yaml @@ -37,7 +37,7 @@ inputs: dry_run: description: "Dry run" required: false - default: "true" # make it false after testing TODO + default: "false" runs: using: "composite" diff --git a/push_template.sh b/push_template.sh index 805e53c..050b04e 100755 --- a/push_template.sh +++ b/push_template.sh @@ -16,9 +16,8 @@ push_command="coder templates push ${CODER_TEMPLATE_ID} --directory ./${CODER_TE # Add message to the push command if specified if [ -n "${CODER_TEMPLATE_MESSAGE}" ]; then - push_command+=" --message ${CODER_TEMPLATE_MESSAGE}" + push_command+=" --message "${CODER_TEMPLATE_MESSAGE}"" fi -push_command+=" --message ${CODER_TEMPLATE_MESSAGE}" # Append --create flag to the push command if CODER_TEMPLATE_CREATE is true if [ "${CODER_TEMPLATE_CREATE}" = "true" ]; then