Skip to content

Commit a5bad87

Browse files
committed
fix
1 parent 95f6b96 commit a5bad87

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/pint.yml

+15-7
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,31 @@
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+
310
jobs:
411
phplint:
512
name: Laravel Pint
613
runs-on: ubuntu-latest
714
steps:
815
- uses: actions/checkout@v4
916
with:
10-
fetch-depth: 2
17+
fetch-depth: 2 # Fetch minimal history for PR checks
1118

12-
- name: Laravel Pint
13-
uses: aglipanci/laravel-pint-action@latest
19+
- name: Run Laravel Pint
20+
uses: aglipanci/laravel-pint-action@v2
1421
with:
1522
preset: laravel
1623
configPath: "pint.json"
1724
pintVersion: 1.21.2
1825

19-
- name: Commit changes
26+
- name: Auto Commit Fixes
27+
if: github.event_name == 'push' # Only commit fixes on push, not PRs
2028
uses: stefanzweifel/git-auto-commit-action@v5
2129
with:
2230
commit_message: Fixing styling (Laravel Pint)
23-
skip_fetch: true
31+
skip_fetch: true

0 commit comments

Comments
 (0)