From 58d7467f315e2e53ba56b6a2ecc6c9d0141cfdd1 Mon Sep 17 00:00:00 2001 From: Jason Kytros Date: Wed, 7 Aug 2024 14:59:25 +0300 Subject: [PATCH] Prevent 'PR highlight changes' from running for blockified templates (#50439) --- .github/workflows/pr-highlight-changes.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-highlight-changes.yml b/.github/workflows/pr-highlight-changes.yml index 3fd276e222a..aaae308e045 100644 --- a/.github/workflows/pr-highlight-changes.yml +++ b/.github/workflows/pr-highlight-changes.yml @@ -3,6 +3,7 @@ on: pull_request: paths: - 'plugins/woocommerce/**' + - '!plugins/woocommerce/templates/templates/**' jobs: analyze: name: 'Analyze Branch Changes' @@ -26,7 +27,7 @@ jobs: GIT_CLONE_PROTECTION_ACTIVE: false run: | HEAD_REF=$(git rev-parse HEAD) - exclude="plugins/woocommerce/tests plugins/woocommerce-admin/tests plugins/woocommerce-blocks/tests" + exclude="plugins/woocommerce/tests plugins/woocommerce/templates/templates plugins/woocommerce-admin/tests plugins/woocommerce-blocks/tests" version=$(pnpm analyzer major-minor "$HEAD_REF" "plugins/woocommerce/woocommerce.php" | tail -n 1) pnpm analyzer "$HEAD_REF" $version -o "github" -e $exclude - uses: 'actions/github-script@v6'