Skip to content

Commit

Permalink
Revert "chore: add -input=false to avoid hanging if Terraform start…
Browse files Browse the repository at this point in the history
…s waiting for user input (#31)" (#32)

This reverts commit d058586.
  • Loading branch information
ebachle committed May 18, 2023
1 parent d058586 commit ae8f1ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit ae8f1ee

Please sign in to comment.