Skip to content

Commit

Permalink
Run github workflows when their configuration files are changed (#2691)
Browse files Browse the repository at this point in the history
* PHPStan: run workflows when configuration files are changed

* PHPStan: run workflows when configuration files are changed

* Run workflow if their configuration has changed
  • Loading branch information
fballiano authored Nov 7, 2022
1 parent ec01f50 commit 99735a2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ on:
push:
paths:
- '**.php'
- '.github/phpstan*'
- '.github/workflows/phpstan*'
pull_request:
paths:
- '**.php'
- '.github/phpstan*'
- '.github/workflows/phpstan*'
# Allow manually triggering the workflow.
workflow_dispatch:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
push:
paths:
- '**.php'
- '.github/workflows/phpunit*'
pull_request:
paths:
- '**.php'
- '.github/workflows/phpunit*'
# Allow manually triggering the workflow.
workflow_dispatch:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/syntax-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ on:
paths:
- '**.php'
- '**.phtml'
- '.github/workflows/syntax-php.yml'
pull_request:
paths:
- '**.php'
- '**.phtml'
- '.github/workflows/syntax-php.yml'
# Allow manually triggering the workflow.
workflow_dispatch:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/syntax-xml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
push:
paths:
- '**.xml'
- '.github/workflows/syntax-xml.yml'
pull_request:
paths:
- '**.xml'
- '.github/workflows/syntax-xml.yml'
# Allow manually triggering the workflow.
workflow_dispatch:

Expand Down

0 comments on commit 99735a2

Please sign in to comment.