We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aacbdf4 commit fc4174dCopy full SHA for fc4174d
.github/workflows/linter.yaml
@@ -17,4 +17,9 @@ jobs:
17
18
- name: Terraform linter
19
run: |
20
- find . -type f -name "*.tf" ! -path "*/.terraform/*" -exec terraform fmt -check {} \;
+ results=$(find . -type f -name "*.tf" ! -path "*/.terraform/*" -exec terraform fmt -check {} \;)
21
+ if [ -n "$results" ]; then
22
+ echo "Terraform files must be formatted with 'terraform fmt'. Please run 'terraform fmt' and commit the changes."
23
+ echo "$results"
24
+ exit 1
25
+ fi
0 commit comments