Skip to content

Commit 5e9753d

Browse files
authored
Merge pull request #2 from actionshub/feature/initial
Fix this thing
2 parents a039153 + 5a388e8 commit 5e9753d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![CI State](https://github.com/actionshub/terraform-lint/workflows/release/badge.svg)](https://github.com/actionshub/terraform-lint)
44

5-
A Github Action to run terraform lint on your files
5+
A Github Action to ensure your terraform files are formatted correctly
66

77
## Usage
88

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 'Terraform-Lint'
22
author: 'Jason Field'
3-
description: 'Run terraform lint on your code with ease'
3+
description: 'Validates your terraform files are formatted correctly'
44
runs:
55
using: 'docker'
66
image: 'Dockerfile'

entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
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

0 commit comments

Comments
 (0)