File tree Expand file tree Collapse file tree 1 file changed +18
-17
lines changed Expand file tree Collapse file tree 1 file changed +18
-17
lines changed Original file line number Diff line number Diff line change 1- name : PHP Style
1+ name : " PHP-CS-Fixer "
22
3- on : [push]
3+ on :
4+ push :
5+ branches :
6+ - " [0-9]+.[0-9]+"
7+ - " [0-9]+.x"
48
5- jobs :
6- php-cs-fixer :
7- runs-on : ubuntu-latest
8- steps :
9- - uses : actions/checkout@v2
10- with :
11- ref : ${{ github.head_ref }}
12-
13- - name : PHP-CS-Fixer
14- uses : docker://oskarstark/php-cs-fixer-ga:2.19.0
15- with :
16- args : --config=.php_cs.dist --allow-risky yes
9+ permissions :
10+ contents : write
1711
18- - uses : stefanzweifel/git-auto-commit-action@v4
19- with :
20- commit_message : Apply php-cs-fixer changes
12+ jobs :
13+ php-style :
14+ uses : pimcore/workflows-collection-public/.github/workflows/reusable-php-cs-fixer.yaml@main
15+ if : github.repository_owner == 'pimcore'
16+ secrets :
17+ PHP_CS_FIXER_GITHUB_TOKEN : ${{ secrets.PHP_CS_FIXER_GITHUB_TOKEN }}
18+ with :
19+ head_ref : ${{ github.event.pull_request.head.ref }}
20+ repository : ${{ github.event.pull_request.head.repo.full_name }}
21+ config_file : .php-cs-fixer.dist.php
You can’t perform that action at this time.
0 commit comments