File tree 1 file changed +17
-1
lines changed
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
2
5
3
6
on:
4
7
push:
5
8
paths:
6
9
- '**.php'
10
+ pull_request:
11
+ paths:
12
+ - '**.php'
7
13
8
14
permissions:
9
15
contents: write
@@ -18,10 +24,20 @@ jobs:
18
24
with:
19
25
ref: ${{ github.head_ref }}
20
26
27
+ - name: Check PHP code style issues
28
+ if: github.event_name == 'push'
29
+
30
+ with:
31
+ verboseMode: true
32
+ testMode: true
33
+
21
34
- name: Fix PHP code style issues
35
+ if: github.event_name == 'pull_request'
22
36
23
37
24
38
- name: Commit changes
39
+ if: github.event_name == 'pull_request'
25
40
uses: stefanzweifel/git-auto-commit-action@v5
26
41
with:
27
42
commit_message: Fix styling
43
+
You can’t perform that action at this time.
0 commit comments