Prevent 'PR highlight changes' from running for blockified templates (#50439)

This commit is contained in:
Jason Kytros 2024-08-07 14:59:25 +03:00 committed by GitHub
parent 06b9380ab4
commit 58d7467f31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ on:
pull_request: pull_request:
paths: paths:
- 'plugins/woocommerce/**' - 'plugins/woocommerce/**'
- '!plugins/woocommerce/templates/templates/**'
jobs: jobs:
analyze: analyze:
name: 'Analyze Branch Changes' name: 'Analyze Branch Changes'
@ -26,7 +27,7 @@ jobs:
GIT_CLONE_PROTECTION_ACTIVE: false GIT_CLONE_PROTECTION_ACTIVE: false
run: | run: |
HEAD_REF=$(git rev-parse HEAD) 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) version=$(pnpm analyzer major-minor "$HEAD_REF" "plugins/woocommerce/woocommerce.php" | tail -n 1)
pnpm analyzer "$HEAD_REF" $version -o "github" -e $exclude pnpm analyzer "$HEAD_REF" $version -o "github" -e $exclude
- uses: 'actions/github-script@v6' - uses: 'actions/github-script@v6'