diff --git a/action.yaml b/action.yaml index 36db4dc..74686fb 100644 --- a/action.yaml +++ b/action.yaml @@ -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 }} diff --git a/endpoint.sh b/endpoint.sh index 4f8500c..98d5c4a 100755 --- a/endpoint.sh +++ b/endpoint.sh @@ -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[@]}"