Skip to content

Commit 15b5741

Browse files
committed
Fix workflows triggering on tag pushes
Add branch filter to prevent workflows from running on tag pushes, which caused failures due to empty github.head_ref and immutable tag refs.
1 parent 58abae7 commit 15b5741

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Fix PHP code style issues
22

33
on:
44
push:
5+
branches:
6+
- '**'
57
paths:
68
- "**.php"
79
pull_request:

.github/workflows/phpstan.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: PHPStan
22

33
on:
44
push:
5+
branches:
6+
- '**'
57
paths:
68
- "**.php"
79
- "phpstan.neon.dist"

.github/workflows/run-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: run-tests
22

33
on:
44
push:
5+
branches:
6+
- '**'
57
paths:
68
- "**.php"
79
- ".github/workflows/run-tests.yml"

0 commit comments

Comments
 (0)