Skip to content

Commit

Permalink
fix: make action backward compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
matifali committed Jun 7, 2023
1 parent bdc14d3 commit bda3768
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ if [ -n "${CODER_TEMPLATE_VERSION}" ]; then
push_command+=" --name ${CODER_TEMPLATE_VERSION}"
fi

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

# Add confirmation flag to the push command
Expand Down

0 comments on commit bda3768

Please sign in to comment.