fix(bash): removed minus from env var names
This commit is contained in:
parent
21eccc189b
commit
74edf65413
2 changed files with 8 additions and 6 deletions
|
|
@ -3,10 +3,10 @@ description: 'Deploys an Edge Connect application using the edge-connect-client'
|
|||
author: 'DevFW'
|
||||
|
||||
inputs:
|
||||
config-file:
|
||||
configFile:
|
||||
description: 'Path to the Edge Connect configuration file.'
|
||||
required: true
|
||||
dry-run:
|
||||
dryRun:
|
||||
description: 'Perform a dry run of the deployment.'
|
||||
required: false
|
||||
default: 'false'
|
||||
|
|
@ -23,6 +23,6 @@ runs:
|
|||
${{ github.action_path }}/endpoint.sh
|
||||
shell: bash
|
||||
env:
|
||||
INPUT_CONFIG-FILE: ${{ inputs.config-file }}
|
||||
INPUT_DRY-RUN: ${{ inputs.dry-run }}
|
||||
INPUT_CONFIG_FILE: ${{ inputs.configFile }}
|
||||
INPUT_DRY_RUN: ${{ inputs.dryRun }}
|
||||
INPUT_VERSION: ${{ inputs.version }}
|
||||
|
|
|
|||
|
|
@ -15,11 +15,13 @@ main() {
|
|||
chmod +x "${cli_path}"
|
||||
|
||||
local -a args
|
||||
args=("--file" "${INPUT_CONFIG-FILE}")
|
||||
args=("--file" "${INPUT_CONFIG_FILE}")
|
||||
|
||||
if [[ "${INPUT_DRY-RUN}" == "true" ]]; then
|
||||
if [[ "${INPUT_DRY_RUN}" == "true" ]]; then
|
||||
args+=("--dry-run")
|
||||
fi
|
||||
|
||||
echo Executing: "${cli_path}" apply "${args[@]}"
|
||||
|
||||
# The CLI uses an interactive prompt, so we need to pipe "yes" to it.
|
||||
yes | "${cli_path}" apply "${args[@]}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue