File tree Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Original file line number Diff line number Diff 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 : |
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
You can’t perform that action at this time.
0 commit comments