7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- name : Checkout
10
- uses : actions/checkout@v1.0.0
10
+ uses : actions/checkout@master
11
11
12
- - name : terraform fmt
13
- uses :
hashicorp/terraform-github-actions/[email protected]
12
+ - name : ' Terraform Format'
13
+ uses : hashicorp/terraform-github-actions@master
14
+ with :
15
+ tf_actions_version : 0.12.15
16
+ tf_actions_subcommand : ' fmt'
17
+ tf_actions_working_dir : ' .'
18
+ tf_actions_comment : true
14
19
env :
15
- TF_ACTION_WORKING_DIR : " . "
20
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
16
21
17
22
validate-examples :
18
23
name : Validate examples
@@ -21,22 +26,42 @@ jobs:
21
26
- name : Checkout
22
27
uses : actions/checkout@master
23
28
24
- - name : terraform init - examples/simple-nodejs
25
- uses :
hashicorp/terraform-github-actions/[email protected]
29
+ - name : ' Terraform Init - examples/simple-nodejs'
30
+ uses : hashicorp/terraform-github-actions@master
31
+ with :
32
+ tf_actions_version : 0.12.15
33
+ tf_actions_subcommand : ' init'
34
+ tf_actions_working_dir : ' ./examples/simple-nodejs'
35
+ tf_actions_comment : true
26
36
env :
27
- TF_ACTION_WORKING_DIR : " ./examples/simple-nodejs "
37
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
38
29
- - name : terraform validate - examples/simple-nodejs
30
- uses :
hashicorp/terraform-github-actions/[email protected]
39
+ - name : ' Terraform Validate - examples/simple-nodejs'
40
+ uses : hashicorp/terraform-github-actions@master
41
+ with :
42
+ tf_actions_version : 0.12.15
43
+ tf_actions_subcommand : ' validate'
44
+ tf_actions_working_dir : ' ./examples/simple-nodejs'
45
+ tf_actions_comment : true
31
46
env :
32
- TF_ACTION_WORKING_DIR : " ./examples/simple-nodejs "
47
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
48
34
- - name : terraform init - examples/simple-py
35
- uses :
hashicorp/terraform-github-actions/[email protected]
49
+ - name : ' Terraform Init - examples/simple-py'
50
+ uses : hashicorp/terraform-github-actions@master
51
+ with :
52
+ tf_actions_version : 0.12.15
53
+ tf_actions_subcommand : ' init'
54
+ tf_actions_working_dir : ' ./examples/simple-py'
55
+ tf_actions_comment : true
36
56
env :
37
- TF_ACTION_WORKING_DIR : " ./examples/simple-py "
57
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
58
39
- - name : terraform validate - examples/simple-py
40
- uses :
hashicorp/terraform-github-actions/[email protected]
59
+ - name : ' Terraform Validate - examples/simple-py'
60
+ uses : hashicorp/terraform-github-actions@master
61
+ with :
62
+ tf_actions_version : 0.12.15
63
+ tf_actions_subcommand : ' validate'
64
+ tf_actions_working_dir : ' ./examples/simple-py'
65
+ tf_actions_comment : true
41
66
env :
42
- TF_ACTION_WORKING_DIR : " ./examples/simple-py "
67
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments