code-style.yml 583 B

12345678910111213141516171819202122232425
  1. name: Code Style
  2. on: [push]
  3. jobs:
  4. php-cs-fixer:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: Checkout code
  8. uses: actions/checkout@v2
  9. with:
  10. ref: ${{ github.head_ref }}
  11. - name: Run PHP CS Fixer
  12. uses: docker://oskarstark/php-cs-fixer-ga
  13. with:
  14. args: --config=.php-cs-fixer.dist.php --allow-risky=yes
  15. - name: Commit changes
  16. uses: stefanzweifel/git-auto-commit-action@v4
  17. with:
  18. commit_message: Apply PHP CS Fixer changes
  19. env:
  20. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}