Prevent 'PR highlight changes' from running for blockified templates (#50439)
This commit is contained in:
parent
06b9380ab4
commit
58d7467f31
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue