File tree Expand file tree Collapse file tree 2 files changed +19
-22
lines changed Expand file tree Collapse file tree 2 files changed +19
-22
lines changed Original file line number Diff line number Diff line change 1
- name : Check & fix styling
1
+ name : Fix PHP Code Style
2
2
3
- on : [push]
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ paths :
7
+ - ' **.php'
4
8
5
9
jobs :
6
- style :
10
+ fix-php-code-style :
11
+ name : Fix PHP Code Style
7
12
runs-on : ubuntu-latest
8
-
9
13
steps :
10
- - name : Checkout code
11
- uses : actions/checkout@v1
12
-
13
- - name : Fix style
14
- uses : docker://oskarstark/php-cs-fixer-ga
15
- with :
16
- args : --config=.php_cs --allow-risky=yes
14
+ - uses : actions/checkout@v2
15
+ with :
16
+ fetch-depth : 2
17
+ token : ${{ secrets.GITHUB_TOKEN }}
17
18
18
- - name : Extract branch name
19
- shell : bash
20
- run : echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
21
- id : extract_branch
19
+ - name : Run PHP CS Fixer
20
+ uses : docker://oskarstark/php-cs-fixer-ga:2.18.6
22
21
23
- - name : Commit changes
24
- uses :
stefanzweifel/[email protected]
25
- with :
26
- commit_message : Fix styling
27
- branch : ${{ steps.extract_branch.outputs.branch }}
28
- env :
29
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22
+ - name : Commit changes
23
+ uses : stefanzweifel/git-auto-commit-action@v4
24
+ with :
25
+ commit_message : Fix Backend Code Style
26
+ skip_fetch : true
File renamed without changes.
You can’t perform that action at this time.
0 commit comments