Skip to content

Commit

Permalink
ammend output check to work with nice formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
YegorVolkov committed Aug 9, 2024
1 parent 47e5b19 commit 790f0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/terraform-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Check built-in functions usage
run: |
if ! grep -q 'upper(' *.tf || ! grep -q 'join(' *.tf || ! grep -Eq '\[for.*:' *.tf; then
if ! grep -q 'upper(' *.tf || ! grep -q 'join(' *.tf || ! grep -Eq '\[\s*for.*:' *.tf; then
echo "Required built-in functions not used correctly!"
exit 1
fi
Expand Down

0 comments on commit 790f0b3

Please sign in to comment.