diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index 591923edad..7149d56322 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -39,7 +39,7 @@ jobs: - name: Fix code style if: env.writable == 1 - run: vendor/bin/php-cs-fixer fix --diff + run: vendor/bin/php-cs-fixer list-files --config=.php-cs-fixer.dist.php | xargs -n 250 -P 3 vendor/bin/php-cs-fixer fix --diff --config=.php-cs-fixer.dist.php - name: Commit changed files uses: stefanzweifel/git-auto-commit-action@v4 @@ -50,6 +50,7 @@ jobs: commit_user_email: rex-bot@users.noreply.github.com - name: Check code style + if: env.writable == 0 run: vendor/bin/php-cs-fixer fix --ansi --diff --dry-run --format=checkstyle | cs2pr # check whether there are still errors left rector: