Skip to content

Commit fca01d2

Browse files
committed
ci: update terraform to v0.13
- update ci to use hashicorp/setup-terraform
1 parent 3e66d43 commit fca01d2

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

.github/workflows/terraform_and_release.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,12 @@ jobs:
1010
- name: 'Checkout'
1111
uses: actions/checkout@master
1212

13-
- name: 'Terraform Format'
14-
uses: hashicorp/terraform-github-actions@master
13+
- uses: hashicorp/setup-terraform@v1
1514
with:
16-
tf_actions_version: 0.12.20
17-
tf_actions_subcommand: 'fmt'
18-
env:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
- name: 'Terraform Init'
21-
uses: hashicorp/terraform-github-actions@master
22-
with:
23-
tf_actions_version: 0.12.20
24-
tf_actions_subcommand: 'init'
25-
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
tf_actions_version: 0.13.x
16+
17+
- run: terraform fmt
18+
- run: terraform init
2719

2820
- name: 'Inject provider configs for validate command'
2921
run: |
@@ -37,13 +29,9 @@ jobs:
3729
app_key = ""
3830
}
3931
EOF
40-
- name: 'Terraform Validate'
41-
uses: hashicorp/terraform-github-actions@master
42-
with:
43-
tf_actions_version: 0.12.20
44-
tf_actions_subcommand: 'validate'
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- run: terraform validate
34+
4735
release:
4836
if: github.event_name == 'push'
4937
needs: terraform

0 commit comments

Comments
 (0)