Skip to content

Commit 34cf1b5

Browse files
committed
Exclude build asset files from PHP GitHub Actions triggers (#2293)
1 parent a90665b commit 34cf1b5

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/extract-wp-hooks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name: Extract WordPress Hooks
33
on:
44
push:
55
branches: [trunk]
6-
paths: ['**.php']
6+
paths:
7+
- '**.php'
8+
- '!build/**/*.asset.php'
79
workflow_dispatch:
810

911
jobs:

.github/workflows/phpcs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- 'phpunit.xml.dist'
1111
- 'phpcs.xml'
1212
- '.github/workflows/phpcs.yml'
13+
- '!build/**/*.asset.php'
1314
pull_request:
1415
paths:
1516
- '**/*.php'
@@ -18,6 +19,7 @@ on:
1819
- 'phpunit.xml.dist'
1920
- 'phpcs.xml'
2021
- '.github/workflows/phpcs.yml'
22+
- '!build/**/*.asset.php'
2123
jobs:
2224
phpcs:
2325
runs-on: ubuntu-latest

.github/workflows/phpunit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- 'phpunit.xml.dist'
1111
- 'phpcs.xml'
1212
- '.github/workflows/phpunit.yml'
13+
- '!build/**/*.asset.php'
1314
pull_request:
1415
paths:
1516
- '**/*.php'
@@ -18,6 +19,7 @@ on:
1819
- 'phpunit.xml.dist'
1920
- 'phpcs.xml'
2021
- '.github/workflows/phpunit.yml'
22+
- '!build/**/*.asset.php'
2123
jobs:
2224
phpunit:
2325
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)