From 97234b12c60e897eee7e36a0a03a3d036d1e7947 Mon Sep 17 00:00:00 2001 From: Edwin De Jong Date: Mon, 19 Oct 2020 10:06:24 +0200 Subject: [PATCH] Make examples non-blocking The README.md examples contain steps that are blocking due to terraform asking for input. Due to stdin and stderr captured, it can be hard to debug what is going wrong. The -input=false parameter to the terraform init, terraform plan and terraform apply calls will produce an error when required input is not given. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cbceb5c..bcb20a1 100644 --- a/README.md +++ b/README.md @@ -68,10 +68,10 @@ Subsequent steps can access outputs when the wrapper script is installed. steps: - uses: hashicorp/setup-terraform@v1 -- run: terraform init +- run: terraform init -input=false - id: plan - run: terraform plan -no-color + run: terraform plan -no-color -input=false - run: echo ${{ steps.plan.outputs.stdout }} - run: echo ${{ steps.plan.outputs.stderr }} @@ -95,7 +95,7 @@ steps: - name: Terraform Init id: init - run: terraform init + run: terraform init -input=false - name: Terraform Validate id: validate @@ -103,7 +103,7 @@ steps: - name: Terraform Plan id: plan - run: terraform plan -no-color + run: terraform plan -no-color -input=false continue-on-error: true - uses: actions/github-script@0.9.0