Skip to content

Commit

Permalink
ammend locals naming check fm '_' to '-'
Browse files Browse the repository at this point in the history
  • Loading branch information
YegorVolkov committed Aug 9, 2024
1 parent 762bc64 commit 47e5b19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/terraform-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Check local value for network interface names
run: |
if ! grep -q 'locals {' *.tf || ! grep -Eq '(nic_names|network_interface_names)' *.tf; then
if ! grep -q 'locals {' *.tf || ! grep -Eq '(nic-names|network_interface_names)' *.tf; then
echo "Local value for network interface names not found!"
exit 1
fi
Expand All @@ -62,7 +62,7 @@ jobs:
- name: Check local value for security rules
run: |
if ! grep -q 'locals {' *.tf || ! grep -Eq '(security_rules|nsg_rules)' *.tf; then
if ! grep -q 'locals {' *.tf || ! grep -Eq '(security-rules|nsg_rules)' *.tf; then
echo "Local value for security rules not found!"
exit 1
fi
Expand Down

0 comments on commit 47e5b19

Please sign in to comment.