fix(bash): removed minus from env var names

This commit is contained in:
Richard Robert Reitz 2025-10-02 14:21:07 +02:00
parent 21eccc189b
commit 74edf65413
2 changed files with 8 additions and 6 deletions

View file

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

View file

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