mirror of
https://github.com/matifali/update-coder-template.git
synced 2025-11-11 01:42:18 +08:00
Merge branch 'main' into feature/provisioner-tag
This commit is contained in:
commit
21db2309fb
2 changed files with 10 additions and 0 deletions
|
|
@ -34,6 +34,10 @@ inputs:
|
|||
description: "update message"
|
||||
required: false
|
||||
default: "Updated via update-coder-template action"
|
||||
organization:
|
||||
description: "organization name"
|
||||
required: false
|
||||
default: ""
|
||||
dry_run:
|
||||
description: "Dry run"
|
||||
required: false
|
||||
|
|
@ -64,3 +68,4 @@ runs:
|
|||
CODER_TEMPLATE_DRY_RUN: ${{ inputs.dry_run }}
|
||||
CODER_PROVISIONER_TAG: ${{ inputs.provisioner_tag }}
|
||||
CODER_IGNORE_LOCKFILE: ${{ inputs.ignore_lockfile }}
|
||||
CODER_TEMPLATE_ORGANIZATION: ${{ inputs.organization }}
|
||||
|
|
|
|||
|
|
@ -24,6 +24,11 @@ if [ -n "${CODER_PROVISIONER_TAG}" ]; then
|
|||
push_command+=" --provisioner-tag=\"${CODER_PROVISIONER_TAG}\""
|
||||
fi
|
||||
|
||||
# Add organization to the push command if specified
|
||||
if [ -n "${CODER_TEMPLATE_ORGANIZATION}" ]; then
|
||||
push_command+=" --org \"${CODER_TEMPLATE_ORGANIZATION}\""
|
||||
fi
|
||||
|
||||
# Add version to the push command if specified
|
||||
if [ -n "${CODER_TEMPLATE_VERSION_NAME}" ]; then
|
||||
push_command+=" --name ${CODER_TEMPLATE_VERSION_NAME}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue