fix template id

This commit is contained in:
Muhammad Atif Ali 2023-08-11 13:09:25 +03:00
parent 2c4f6841cf
commit 1f99dff337

View file

@ -12,7 +12,7 @@ echo "CODER_TEMPLATE_ID: ${CODER_TEMPLATE_ID}"
echo "CODER_TEMPLATE_DIR: ${CODER_TEMPLATE_DIR}"
# Construct push command
push_command="coder templates push ${CODER_TEMPLATE_NAME} --directory ./${CODER_TEMPLATE_DIR}" --message ${CODER_TEMPLATE_MESSAGE}
push_command="coder templates push ${CODER_TEMPLATE_ID} --directory ./${CODER_TEMPLATE_DIR}" --message ${CODER_TEMPLATE_MESSAGE}
# Append --create flag to the push command if CODER_TEMPLATE_CREATE is true
if [ "${CODER_TEMPLATE_CREATE}" = "true" ]; then