We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5374811 commit 6d77cffCopy full SHA for 6d77cff
.github/workflows/scripts/terraform-variable-check.sh
@@ -15,5 +15,5 @@ WORKFLOW_VARS="$(grep -r "^\s*TF_VAR" $SCRIPT_DIR/../ | awk -F ':' '{print $2}'
15
# Loop through all the variables in the workflow and check if they are defined in the *.tf code
16
for VAR in $WORKFLOW_VARS; do
17
echo "🔎 Checking variable: \"$VAR\""
18
- grep -r "variable \"$VAR\"" "$SCRIPT_DIR/../../../" || (echo "❌ Variable \"$VAR\" is not defined as a Terraform variable" && exit 1)
+ grep -r --include="*.tf" "variable \"$VAR\"" "$SCRIPT_DIR/../../../" || (echo "❌ Variable \"$VAR\" is not defined as a Terraform variable" && exit 1)
19
done
0 commit comments