File tree Expand file tree Collapse file tree 1 file changed +15
-21
lines changed
Expand file tree Collapse file tree 1 file changed +15
-21
lines changed Original file line number Diff line number Diff line change @@ -3,27 +3,21 @@ name: Check & fix styling
33on : [push]
44
55jobs :
6- style :
7- runs-on : ubuntu-latest
6+ php-cs-fixer :
7+ runs-on : ubuntu-latest
88
9- steps :
10- - name : Checkout code
11- uses : actions/checkout@v1
9+ steps :
10+ - name : Checkout code
11+ uses : actions/checkout@v2
12+ with :
13+ ref : ${{ github.head_ref }}
1214
13- - name : Fix style
14- uses : docker://oskarstark/php-cs-fixer-ga
15- with :
16- args : --config=.php_cs --allow-risky=yes
15+ - name : Run PHP CS Fixer
16+ uses : docker://oskarstark/php-cs-fixer-ga
17+ with :
18+ args : --config=.php_cs.dist --allow-risky=yes
1719
18- - name : Extract branch name
19- shell : bash
20- run : echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
21- id : extract_branch
22-
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 }}
20+ - name : Commit changes
21+ uses : stefanzweifel/git-auto-commit-action@v4
22+ with :
23+ commit_message : Fix styling
You can’t perform that action at this time.
0 commit comments