File tree 1 file changed +15
-7
lines changed
1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 1
- name : Check & fix styling (laravel pint)
2
- on : [ push, pull_request ]
1
+ name : Check & Fix Styling (Laravel Pint)
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ permissions :
8
+ contents : write
9
+
3
10
jobs :
4
11
phplint :
5
12
name : Laravel Pint
6
13
runs-on : ubuntu-latest
7
14
steps :
8
15
- uses : actions/checkout@v4
9
16
with :
10
- fetch-depth : 2
17
+ fetch-depth : 2 # Fetch minimal history for PR checks
11
18
12
- - name : Laravel Pint
13
- uses : aglipanci/laravel-pint-action@latest
19
+ - name : Run Laravel Pint
20
+ uses : aglipanci/laravel-pint-action@v2
14
21
with :
15
22
preset : laravel
16
23
configPath : " pint.json"
17
24
pintVersion : 1.21.2
18
25
19
- - name : Commit changes
26
+ - name : Auto Commit Fixes
27
+ if : github.event_name == 'push' # Only commit fixes on push, not PRs
20
28
uses : stefanzweifel/git-auto-commit-action@v5
21
29
with :
22
30
commit_message : Fixing styling (Laravel Pint)
23
- skip_fetch : true
31
+ skip_fetch : true
You can’t perform that action at this time.
0 commit comments