mirror of
https://github.com/matifali/update-coder-template.git
synced 2025-11-13 02:41:31 +08:00
Adicionar suporte para organização no template de push
This commit is contained in:
parent
c5dfa097d7
commit
3ac92fa600
2 changed files with 10 additions and 0 deletions
|
|
@ -30,6 +30,10 @@ inputs:
|
||||||
description: "update message"
|
description: "update message"
|
||||||
required: false
|
required: false
|
||||||
default: "Updated via update-coder-template action"
|
default: "Updated via update-coder-template action"
|
||||||
|
organization:
|
||||||
|
description: "organization name"
|
||||||
|
required: false
|
||||||
|
default: ""
|
||||||
dry_run:
|
dry_run:
|
||||||
description: "Dry run"
|
description: "Dry run"
|
||||||
required: false
|
required: false
|
||||||
|
|
@ -54,3 +58,4 @@ runs:
|
||||||
CODER_TEMPLATE_ACTIVATE: ${{ inputs.activate }}
|
CODER_TEMPLATE_ACTIVATE: ${{ inputs.activate }}
|
||||||
CODER_TEMPLATE_MESSAGE: ${{ inputs.message }}
|
CODER_TEMPLATE_MESSAGE: ${{ inputs.message }}
|
||||||
CODER_TEMPLATE_DRY_RUN: ${{ inputs.dry_run }}
|
CODER_TEMPLATE_DRY_RUN: ${{ inputs.dry_run }}
|
||||||
|
CODER_TEMPLATE_ORGANIZATION: ${{ inputs.organization }}
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,11 @@ if [ -n "${CODER_TEMPLATE_MESSAGE}" ]; then
|
||||||
push_command+=" --message \"${CODER_TEMPLATE_MESSAGE}\""
|
push_command+=" --message \"${CODER_TEMPLATE_MESSAGE}\""
|
||||||
fi
|
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
|
# Add version to the push command if specified
|
||||||
if [ -n "${CODER_TEMPLATE_VERSION_NAME}" ]; then
|
if [ -n "${CODER_TEMPLATE_VERSION_NAME}" ]; then
|
||||||
push_command+=" --name ${CODER_TEMPLATE_VERSION_NAME}"
|
push_command+=" --name ${CODER_TEMPLATE_VERSION_NAME}"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue