diff --git a/.github/workflows/code_check.yml b/.github/workflows/code_check.yml index 745a1ac..fca6aa4 100644 --- a/.github/workflows/code_check.yml +++ b/.github/workflows/code_check.yml @@ -41,13 +41,10 @@ jobs: - name: Install dependencies run: composer install --prefer-dist --no-progress --no-suggest - - name: Run PHP-CS-Fixer - run: | - vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --allow-risky=yes - if [[ `git status --porcelain` ]]; then - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "github-actions[bot]" - git add . - git commit -m "Apply PHP-CS-Fixer changes" - git push origin HEAD:${{ github.ref }} - fi + - name: Run PHP CS Fixer + run: ./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --allow-risky=yes + + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Fix styling