File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ ![ CI State] ( https://github.com/actionshub/terraform-lint/workflows/release/badge.svg )] ( https://github.com/actionshub/terraform-lint )
4
4
5
- A Github Action to run terraform lint on your files
5
+ A Github Action to ensure your terraform files are formatted correctly
6
6
7
7
## Usage
8
8
Original file line number Diff line number Diff line change 1
1
name : ' Terraform-Lint'
2
2
author : ' Jason Field'
3
- description : ' Run terraform lint on your code with ease '
3
+ description : ' Validates your terraform files are formatted correctly '
4
4
runs :
5
5
using : ' docker'
6
6
image : ' Dockerfile'
Original file line number Diff line number Diff line change 1
- terraform lint
1
+ if [[ -n " $( terraform fmt -check -recursive) " ]]; then
2
+ echo " Some terraform files need be formatted, run 'terraform fmt' to fix" ;
3
+ exit 1;
4
+ fi
You can’t perform that action at this time.
0 commit comments