Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tai-sho committed Jun 9, 2024
1 parent a883bfa commit 7e350fd
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/code_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7e350fd

Please sign in to comment.