From ae8f1ee3eaa87f8cba02b673fdfe63dafb2d823a Mon Sep 17 00:00:00 2001 From: Eddie Bachle Date: Thu, 18 May 2023 17:43:16 -0400 Subject: [PATCH] Revert "chore: add `-input=false` to avoid hanging if Terraform starts waiting for user input (#31)" (#32) This reverts commit d058586f7fc71b76c4741aa5286181ffe5746dea. --- action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 29b783f..e20719b 100644 --- a/action.yml +++ b/action.yml @@ -40,7 +40,7 @@ runs: shell: bash run: | cd ${{ inputs.path }} - if terraform fmt -input=false -recursive -check; then + if terraform fmt -recursive -check; then echo "fmt-outcome=success" >> $GITHUB_OUTPUT else echo "fmt-outcome=failure" >> $GITHUB_OUTPUT @@ -51,7 +51,7 @@ runs: shell: bash run: | cd ${{ inputs.path }} - if terraform init -input=false; then + if terraform init; then echo "init-outcome=success" >> $GITHUB_OUTPUT else echo "init-outcome=failure" >> $GITHUB_OUTPUT @@ -62,7 +62,7 @@ runs: shell: bash run: | cd ${{ inputs.path }} - if terraform workspace -input=false show; then + if terraform workspace show; then echo "workspace-outcome=success" >> $GITHUB_OUTPUT else echo "workspace-outcome=failure" >> $GITHUB_OUTPUT @@ -73,7 +73,7 @@ runs: shell: bash run: | cd ${{ inputs.path }} - if terraform validate -input=false -no-color; then + if terraform validate -no-color; then echo "validate-outcome=success" >> $GITHUB_OUTPUT else echo "validate-outcome=failure" >> $GITHUB_OUTPUT @@ -85,7 +85,7 @@ runs: run: | if [[ '${{ github.ref }}' != 'refs/heads/${{ inputs.apply-branch }}' ]]; then cd ${{ inputs.path }} - if $TERRAFORM_CLI_PATH/terraform-bin plan -input=false -no-color -lock-timeout=60s -lock=${{ inputs.lock-for-plan }} > ${GITHUB_WORKSPACE}/plan.out 2>&1; then + if $TERRAFORM_CLI_PATH/terraform-bin plan -no-color -lock-timeout=60s -lock=${{ inputs.lock-for-plan }} > ${GITHUB_WORKSPACE}/plan.out 2>&1; then echo "plan-outcome=success" >> $GITHUB_OUTPUT else echo "plan-outcome=failure" >> $GITHUB_OUTPUT @@ -238,4 +238,4 @@ runs: fi cd ${{ inputs.path }} - terraform apply -input=false -lock-timeout=60s -auto-approve + terraform apply -lock-timeout=60s -auto-approve