File tree Expand file tree Collapse file tree 2 files changed +43
-25
lines changed Expand file tree Collapse file tree 2 files changed +43
-25
lines changed Original file line number Diff line number Diff line change 1+ # Check and fix PHP code style issues
2+ # Pull request: automatically fix PHP code style issues
3+ # Main branch: only check PHP code style issues since we don't have write permission
4+ name : Check and fix PHP code style issues
5+
6+ on :
7+ push :
8+ paths :
9+ - ' **.php'
10+ pull_request :
11+ paths :
12+ - ' **.php'
13+
14+ permissions :
15+ contents : write
16+
17+ jobs :
18+ php-code-styling :
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Checkout code
23+ uses : actions/checkout@v4
24+ with :
25+ ref : ${{ github.head_ref }}
26+
27+ - name : Check PHP code style issues
28+ if : github.event_name == 'push'
29+ uses : aglipanci/laravel-pint-action@2.5
30+ with :
31+ verboseMode : true
32+ testMode : true
33+
34+ - name : Fix PHP code style issues
35+ if : github.event_name == 'pull_request'
36+ uses : aglipanci/laravel-pint-action@2.5
37+
38+ - name : Commit changes
39+ if : github.event_name == 'pull_request'
40+ uses : stefanzweifel/git-auto-commit-action@v5
41+ with :
42+ commit_message : Fix styling
43+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments