Skip to content

Commit

Permalink
docs: disable wrapper (#400)
Browse files Browse the repository at this point in the history
Signed-off-by: Rishav Dhar <[email protected]>
  • Loading branch information
rdhar authored Jan 27, 2025
1 parent 32d9858 commit 0f94959
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 64 deletions.
2 changes: 2 additions & 0 deletions .github/examples/pr_merge_matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:

- name: Setup TF
uses: opentofu/setup-opentofu@v1
with:
tofu_wrapper: false

- name: Provision TF
uses: op5dev/tf-via-pr@v13
Expand Down
2 changes: 2 additions & 0 deletions .github/examples/pr_push_auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:

- name: Setup TF
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false

- name: Provision TF
uses: op5dev/tf-via-pr@v13
Expand Down
2 changes: 2 additions & 0 deletions .github/examples/pr_push_lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:

- name: Setup TF
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false

- name: Init TF
id: tf
Expand Down
6 changes: 6 additions & 0 deletions .github/examples/pr_push_stages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:

- name: Setup TF
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false

- name: Plan TF
uses: op5dev/tf-via-pr@v13
Expand All @@ -41,6 +43,8 @@ jobs:

- name: Setup TF
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false

- name: Init TF
id: tf
Expand Down Expand Up @@ -88,6 +92,8 @@ jobs:

- name: Setup TF
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false

- name: Apply TF
uses: op5dev/tf-via-pr@v13
Expand Down
4 changes: 4 additions & 0 deletions .github/examples/pr_self_hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ jobs:
- name: Setup Terraform
if: env.tool == 'terraform'
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false

- name: Setup OpenTofu
if: env.tool == 'tofu'
uses: opentofu/setup-opentofu@v1
with:
tofu_wrapper: false

- name: Provision TF
uses: op5dev/tf-via-pr@v13
Expand Down
2 changes: 2 additions & 0 deletions .github/examples/schedule_refresh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:

- name: Setup TF
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false

- name: Plan TF
id: provision
Expand Down
62 changes: 0 additions & 62 deletions .github/workflows/tf_sample.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/tf_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ jobs:
if: matrix.tool == 'tofu'
uses: opentofu/setup-opentofu@12f4debbf681675350b6cd1f0ff8ecfbda62027b # v1.0.4
with:
tofu_version: v1.8.8
tofu_version: v1.9.0
tofu_wrapper: false

- name: Setup Terraform
if: matrix.tool == 'terraform'
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
with:
terraform_version: v1.9.8
terraform_version: v1.10.5
terraform_wrapper: false

- name: Provision TF
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
>
> - All supported arguments (e.g., `-backend-config`, `-destroy`, `-parallelism`, etc.) are [listed below](#inputs---arguments).
> - Environment variables can be passed in for cloud platform authentication (e.g., [configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials "Configuring AWS credentials for use in GitHub Actions.") for short-lived credentials).
> - Recommend setting `terraform_wrapper`/`tofu_wrapper` to `false` in order to output the [detailed exit code](https://developer.hashicorp.com/terraform/cli/commands/plan#detailed-exitcode) for better error handling.

</br>

Expand Down

0 comments on commit 0f94959

Please sign in to comment.