Skip to content

Commit 99735a2

Browse files
authored
Run github workflows when their configuration files are changed (#2691)
* PHPStan: run workflows when configuration files are changed * PHPStan: run workflows when configuration files are changed * Run workflow if their configuration has changed
1 parent ec01f50 commit 99735a2

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

.github/workflows/phpstan.yml

+4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ on:
66
push:
77
paths:
88
- '**.php'
9+
- '.github/phpstan*'
10+
- '.github/workflows/phpstan*'
911
pull_request:
1012
paths:
1113
- '**.php'
14+
- '.github/phpstan*'
15+
- '.github/workflows/phpstan*'
1216
# Allow manually triggering the workflow.
1317
workflow_dispatch:
1418

.github/workflows/phpunit.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ on:
66
push:
77
paths:
88
- '**.php'
9+
- '.github/workflows/phpunit*'
910
pull_request:
1011
paths:
1112
- '**.php'
13+
- '.github/workflows/phpunit*'
1214
# Allow manually triggering the workflow.
1315
workflow_dispatch:
1416

.github/workflows/syntax-php.yml

+2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77
paths:
88
- '**.php'
99
- '**.phtml'
10+
- '.github/workflows/syntax-php.yml'
1011
pull_request:
1112
paths:
1213
- '**.php'
1314
- '**.phtml'
15+
- '.github/workflows/syntax-php.yml'
1416
# Allow manually triggering the workflow.
1517
workflow_dispatch:
1618

.github/workflows/syntax-xml.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ on:
66
push:
77
paths:
88
- '**.xml'
9+
- '.github/workflows/syntax-xml.yml'
910
pull_request:
1011
paths:
1112
- '**.xml'
13+
- '.github/workflows/syntax-xml.yml'
1214
# Allow manually triggering the workflow.
1315
workflow_dispatch:
1416

0 commit comments

Comments
 (0)