Skip to content

Commit 31db085

Browse files
committed
Add fix yaml linter
1 parent f0272b6 commit 31db085

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/linter.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: |
2020
terraform version
2121
results=$(find . -type f -name "*.tf" ! -path "*/.terraform/*" -exec terraform fmt -check {} \;)
22-
if [ -n "$results" ]; then
22+
if [[ -n "$results" ]]; then
2323
echo "Terraform files must be formatted with 'terraform fmt'. Please run 'terraform fmt' and commit the changes."
2424
echo "$results"
2525
exit 1
@@ -36,7 +36,7 @@ jobs:
3636
- name: YAML linter
3737
run: |
3838
results=$(find . -type f -name "*.yaml" -o -name "*.yml" -exec yamllint {} \;)
39-
if [ -n "$results" ]; then
39+
if [[ -n "$results" ]]; then
4040
echo "YAML files must be formatted with 'yamllint'. Please run 'yamllint' and commit the changes."
4141
echo "$results"
4242
exit 1

0 commit comments

Comments
 (0)