Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c62247

Browse files
authored
Merge pull request #9 from matifali/v3
2 parents e817d90 + 7819717 commit 0c62247

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Update coder templates automatically
2323
| **`dir`** | **Required** The directory of the template that contains `main.tf` file | - |
2424
| `name` | New version name for the template. | Autogenerated name by Coder |
2525
| `activate` | Activate the new template version. | `true` |
26-
| `create` | Creates a new template if it does not exist | `true` |
2726
| `message` | Update message (similar to commit messages) | - |
2827
| `dry_run` | Dry run mode. | `false` |
2928

action.yaml

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Update Coder Template
22
description: An action to deploy changes to your coder template automatically
3-
author: "Muhammad Atif Ali <[email protected]>"
3+
author: "Muhammad Atif Ali <[email protected]>"
44

55
branding:
66
icon: arrow-up-circle
@@ -30,10 +30,6 @@ inputs:
3030
description: "update message"
3131
required: false
3232
default: "Updated via update-coder-template action"
33-
create:
34-
description: "Creates a new template if it does not exist"
35-
required: false
36-
default: "true"
3733
dry_run:
3834
description: "Dry run"
3935
required: false
@@ -57,5 +53,4 @@ runs:
5753
CODER_TEMPLATE_VERSION_NAME: ${{ inputs.name }}
5854
CODER_TEMPLATE_ACTIVATE: ${{ inputs.activate }}
5955
CODER_TEMPLATE_MESSAGE: ${{ inputs.message }}
60-
CODER_TEMPLATE_CREATE: ${{ inputs.create }}
6156
CODER_TEMPLATE_DRY_RUN: ${{ inputs.dry_run }}

push_template.sh

-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ if [ -n "${CODER_TEMPLATE_MESSAGE}" ]; then
1919
push_command+=" --message \"${CODER_TEMPLATE_MESSAGE}\""
2020
fi
2121

22-
# Append --create flag to the push command if CODER_TEMPLATE_CREATE is true
23-
if [ "${CODER_TEMPLATE_CREATE}" = "true" ]; then
24-
push_command+=" --create"
25-
fi
26-
2722
# Add version to the push command if specified
2823
if [ -n "${CODER_TEMPLATE_VERSION_NAME}" ]; then
2924
push_command+=" --name ${CODER_TEMPLATE_VERSION_NAME}"

0 commit comments

Comments
 (0)