Skip to content

Commit bda3768

Browse files
committed
fix: make action backward compatible
1 parent bdc14d3 commit bda3768

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entrypoint.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ if [ -n "${CODER_TEMPLATE_VERSION}" ]; then
2222
push_command+=" --name ${CODER_TEMPLATE_VERSION}"
2323
fi
2424

25-
# Add activate flag to the push command if specified
26-
if [ -n "${CODER_TEMPLATE_ACTIVATE}" ]; then
27-
push_command+=" --activate=${CODER_TEMPLATE_ACTIVATE}"
25+
# Add activate flag to the push command if it is false
26+
if [ "${CODER_TEMPLATE_ACTIVATE}" = "false" ]; then
27+
push_command+=" --activate=false"
2828
fi
2929

3030
# Add confirmation flag to the push command

0 commit comments

Comments
 (0)