Run PHP-CS-Fixer on PRs and commit/push back changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/fix-php-cs.yml | |
on: | |
pull_request: | |
name: Coding Standards | |
jobs: | |
open-pr-for-cs-violations: | |
name: PHP-CS-Fixer | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Run PHP-CS-Fixer | |
uses: docker://oskarstark/php-cs-fixer-ga | |
- name: Commit and push back changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "Fix Code Style with PHP-CS-Fixer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment