Skip to content

Commit 2117669

Browse files
committed
fix php-style fixer
1 parent 7825b29 commit 2117669

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

.github/workflows/php-style.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
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

0 commit comments

Comments
 (0)