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:
10
10
- name : ' Checkout'
11
11
uses : actions/checkout@master
12
12
13
- - name : ' Terraform Format'
14
- uses : hashicorp/terraform-github-actions@master
13
+ - uses : hashicorp/setup-terraform@v1
15
14
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
27
19
28
20
- name : ' Inject provider configs for validate command'
29
21
run : |
37
29
app_key = ""
38
30
}
39
31
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
+
47
35
release :
48
36
if : github.event_name == 'push'
49
37
needs : terraform
You can’t perform that action at this time.
0 commit comments