77 runs-on : ubuntu-latest
88 steps :
99 - name : Checkout
10- uses : actions/checkout@v1.0.0
10+ uses : actions/checkout@master
1111
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
1419 env :
15- TF_ACTION_WORKING_DIR : " . "
20+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1621
1722 validate-examples :
1823 name : Validate examples
@@ -21,22 +26,42 @@ jobs:
2126 - name : Checkout
2227 uses : actions/checkout@master
2328
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
2636 env :
27- TF_ACTION_WORKING_DIR : " ./examples/simple-nodejs "
37+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2838
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
3146 env :
32- TF_ACTION_WORKING_DIR : " ./examples/simple-nodejs "
47+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3348
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
3656 env :
37- TF_ACTION_WORKING_DIR : " ./examples/simple-py "
57+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3858
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
4166 env :
42- TF_ACTION_WORKING_DIR : " ./examples/simple-py "
67+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments