Skip to content

Commit 0e44635

Browse files
committed
Run CI codestyle fixes on PRs rather than master
Also bump stefanzweifel/git-auto-commit-action to v5
1 parent 54ad94a commit 0e44635

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/fix-cs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Fix Code Style
22

33
on:
4-
push:
4+
pull_request:
55
branches:
6-
- master
6+
- "*"
77

88
permissions:
99
contents: write
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.head_ref }}
2224

2325
- name: Setup PHP
2426
uses: shivammathur/setup-php@v2
@@ -37,7 +39,7 @@ jobs:
3739
# Revert modifications so they don't get committed 💥
3840
- run: git checkout -- composer.json
3941

40-
- uses: stefanzweifel/git-auto-commit-action@v4
42+
- uses: stefanzweifel/git-auto-commit-action@v5
4143
with:
4244
commit_message: composer fix-style
4345
commit_author: laravel-debugbar <[email protected]>

0 commit comments

Comments
 (0)