diff --git a/README.md b/README.md index 5bc07b9..3cbed6b 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,6 @@ Update coder templates automatically | **`dir`** | **Required** The directory of the template that contains `main.tf` file | - | | `name` | New version name for the template. | Autogenerated name by Coder | | `activate` | Activate the new template version. | `true` | -| `create` | Creates a new template if it does not exist | `true` | | `message` | Update message (similar to commit messages) | - | | `dry_run` | Dry run mode. | `false` | diff --git a/action.yaml b/action.yaml index 1c0448b..2fd9a9b 100644 --- a/action.yaml +++ b/action.yaml @@ -1,6 +1,6 @@ name: Update Coder Template description: An action to deploy changes to your coder template automatically -author: "Muhammad Atif Ali " +author: "Muhammad Atif Ali " branding: icon: arrow-up-circle @@ -30,10 +30,6 @@ inputs: description: "update message" required: false default: "Updated via update-coder-template action" - create: - description: "Creates a new template if it does not exist" - required: false - default: "true" dry_run: description: "Dry run" required: false @@ -57,5 +53,4 @@ runs: CODER_TEMPLATE_VERSION_NAME: ${{ inputs.name }} CODER_TEMPLATE_ACTIVATE: ${{ inputs.activate }} CODER_TEMPLATE_MESSAGE: ${{ inputs.message }} - CODER_TEMPLATE_CREATE: ${{ inputs.create }} CODER_TEMPLATE_DRY_RUN: ${{ inputs.dry_run }} diff --git a/push_template.sh b/push_template.sh index e209ff2..b737481 100755 --- a/push_template.sh +++ b/push_template.sh @@ -19,11 +19,6 @@ if [ -n "${CODER_TEMPLATE_MESSAGE}" ]; then push_command+=" --message \"${CODER_TEMPLATE_MESSAGE}\"" fi -# Append --create flag to the push command if CODER_TEMPLATE_CREATE is true -if [ "${CODER_TEMPLATE_CREATE}" = "true" ]; then - push_command+=" --create" -fi - # Add version to the push command if specified if [ -n "${CODER_TEMPLATE_VERSION_NAME}" ]; then push_command+=" --name ${CODER_TEMPLATE_VERSION_NAME}"