8
8
9
9
env :
10
10
TERRAFORM_DOCS_VERSION : v0.16.0
11
+ TFLINT_VERSION : v0.44.1
11
12
12
13
jobs :
13
14
collectInputs :
21
22
22
23
- name : Get root directories
23
24
id : dirs
24
- uses :
clowdhaus/terraform-composite-actions/[email protected] .2
25
+ uses :
clowdhaus/terraform-composite-actions/[email protected] .3
25
26
26
27
preCommitMinVersions :
27
28
name : Min TF pre-commit
@@ -43,17 +44,19 @@ jobs:
43
44
- name : Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
44
45
# Run only validate pre-commit check on min version supported
45
46
if : ${{ matrix.directory != '.' }}
46
- uses :
clowdhaus/terraform-composite-actions/[email protected] .2
47
+ uses :
clowdhaus/terraform-composite-actions/[email protected] .3
47
48
with :
48
49
terraform-version : ${{ steps.minMax.outputs.minVersion }}
50
+ tflint-version : ${{ env.TFLINT_VERSION }}
49
51
args : ' terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*'
50
52
51
53
- name : Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
52
54
# Run only validate pre-commit check on min version supported
53
55
if : ${{ matrix.directory == '.' }}
54
- uses :
clowdhaus/terraform-composite-actions/[email protected] .2
56
+ uses :
clowdhaus/terraform-composite-actions/[email protected] .3
55
57
with :
56
58
terraform-version : ${{ steps.minMax.outputs.minVersion }}
59
+ tflint-version : ${{ env.TFLINT_VERSION }}
57
60
args : ' terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)'
58
61
59
62
preCommitMaxVersion :
72
75
73
76
74
77
- name : Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
75
- uses :
clowdhaus/terraform-composite-actions/[email protected] .2
78
+ uses :
clowdhaus/terraform-composite-actions/[email protected] .3
76
79
with :
77
80
terraform-version : ${{ steps.minMax.outputs.maxVersion }}
81
+ tflint-version : ${{ env.TFLINT_VERSION }}
78
82
terraform-docs-version : ${{ env.TERRAFORM_DOCS_VERSION }}
79
83
install-hcledit : true
0 commit comments