diff --git a/.github/opentofu-validate.sh b/.github/opentofu-validate.sh index 2564517..e945618 100644 --- a/.github/opentofu-validate.sh +++ b/.github/opentofu-validate.sh @@ -23,6 +23,6 @@ export IAC_BIN=tofu $IAC_BIN version -for WORKSPACE in $(find . \( -name '*.tf' -o -name '*.otf' \) -print0 | xargs -0 -I{} dirname {} | sort -u); do +for WORKSPACE in $(find . \( -name '*.tf' -o -name '*.otf' \) -not -path '*/docs/*/example/*' -print0 | xargs -0 -I{} dirname {} | sort -u); do bash -e .github/tf.sh "$WORKSPACE" validate done diff --git a/.github/terraform-validate.sh b/.github/terraform-validate.sh index 7fdcac6..5aac710 100644 --- a/.github/terraform-validate.sh +++ b/.github/terraform-validate.sh @@ -31,6 +31,6 @@ export IAC_BIN=terraform $IAC_BIN version -for WORKSPACE in $(find . -name '*.tf' -print0 | xargs -0 -I{} dirname {} | sort -u); do +for WORKSPACE in $(find . -name '*.tf' -not -path '*/docs/*/example/*' -print0 | xargs -0 -I{} dirname {} | sort -u); do bash -e .github/tf.sh "$WORKSPACE" validate done