Compare commits

...

7 commits

Author SHA1 Message Date
Muhammad Atif Ali 0c62247cae
Merge pull request #9 from matifali/v3 2024-01-11 21:18:54 +03:00
Muhammad Atif Ali 7819717fc3
Merge pull request #8 from matifali/remove-create 2024-01-11 21:18:29 +03:00
Muhammad Atif Ali d3f671814f
Update README.md 2024-01-11 21:18:08 +03:00
Muhammad Atif Ali 41bdcde523
Update action.yaml 2024-01-11 21:17:22 +03:00
Muhammad Atif Ali cf7688dc74
fix: remove create flag 2024-01-11 21:16:34 +03:00
Muhammad Atif Ali 603ab07856
Merge pull request #7 from matifali/main 2023-12-17 02:11:57 +03:00
Muhammad Atif Ali 5a254fcb96
Merge pull request #5 from matifali/v3 (#6)
update README.md
2023-11-14 13:11:27 +03:00
3 changed files with 1 additions and 12 deletions

View file

@ -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` |

View file

@ -1,6 +1,6 @@
name: Update Coder Template
description: An action to deploy changes to your coder template automatically
author: "Muhammad Atif Ali <matifali@live.com>"
author: "Muhammad Atif Ali <me@matifali.dev>"
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 }}

View file

@ -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}"