File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1- name : Fix PHP code style issues
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
25
36on :
47 push :
58 paths :
69 - ' **.php'
10+ pull_request :
11+ paths :
12+ - ' **.php'
713
814permissions :
915 contents : write
@@ -18,10 +24,20 @@ jobs:
1824 with :
1925 ref : ${{ github.head_ref }}
2026
27+ - name : Check PHP code style issues
28+ if : github.event_name == 'push'
29+ 30+ with :
31+ verboseMode : true
32+ testMode : true
33+
2134 - name : Fix PHP code style issues
35+ if : github.event_name == 'pull_request'
22362337
2438 - name : Commit changes
39+ if : github.event_name == 'pull_request'
2540 uses : stefanzweifel/git-auto-commit-action@v5
2641 with :
2742 commit_message : Fix styling
43+
You can’t perform that action at this time.
0 commit comments