From bb7ceaff3d36876e188893e284d8650a5c3935ca Mon Sep 17 00:00:00 2001 From: Pat Heard Date: Thu, 1 Jul 2021 15:52:32 -0400 Subject: [PATCH] docs: add hashicorp/setup-terraform example --- README.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index fcfae22..1c4c406 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,11 @@ Use the following to control the action: # Examples ```yaml +# Setup Terraform with the `terraform_wrapper` disabled +- uses: hashicorp/setup-terraform@v1 + with: + terraform_wrapper: false + # Run Terraform plan and add a comment with changes on the PR - name: Terraform plan uses: cds-snc/terraform-plan @@ -60,15 +65,9 @@ Use the following to control the action: uses: cds-snc/terraform-plan with: github-token: ${{ secrets.GITHUB_TOKEN }} - terraform-init: -backend-config="region=ca-central-1" -``` - -# Notes -If you use the [hashicorp/setup-terraform](https://github.com/hashicorp/setup-terraform) action, `terraform_wrapper` needs to be disabled: -```yaml -- uses: hashicorp/setup-terraform@v1 - with: - terraform_wrapper: false + terraform-init: | + -backend-config="bucket=your-state-bucket-name" + -backend-config="region=ca-central-1" ``` # Contributing