Skip to content

Commit 6892494

Browse files
committed
Do not try to push directly to a protected branch
1 parent ba7c551 commit 6892494

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/php-coding-style.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
name: Coding style
22

33
on:
4+
pull_request:
5+
paths:
6+
- '**.php'
7+
- '.composer.json'
8+
- '.php_cs'
9+
- '.github/workflows/php-coding-style.yml'
410
push:
511
paths:
612
- '**.php'
713
- '.composer.json'
814
- '.php_cs'
915
- '.github/workflows/php-coding-style.yml'
16+
branches-ignore:
17+
- main # protected
1018

1119
jobs:
1220
style:

0 commit comments

Comments
 (0)