From c81abfc9bc77b6b85ac3b7dd819b8b5720803b4e Mon Sep 17 00:00:00 2001 From: John Ko <279736+johnko@users.noreply.github.com> Date: Sun, 16 Nov 2025 12:04:53 -0500 Subject: [PATCH 1/2] Add .github/opentofu-validate.sh --- .github/opentofu-validate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 323589209367a201f46215228c9b6400a819ad24 Mon Sep 17 00:00:00 2001 From: John Ko <279736+johnko@users.noreply.github.com> Date: Sun, 16 Nov 2025 12:04:57 -0500 Subject: [PATCH 2/2] Add .github/terraform-validate.sh --- .github/terraform-validate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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