From 7e350fd5a899355cc9435666bc8af8556f0c7b54 Mon Sep 17 00:00:00 2001 From: ShoheiTai Date: Sun, 9 Jun 2024 12:54:17 +0900 Subject: [PATCH] Update CI --- .github/workflows/code_check.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) 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