Exclude docs again (from main branch that is)
#47
This file contains hidden or 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
| name: PHP CS Fixer | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| jobs: | |
| php-cs-fixer: | |
| if: "!contains(github.event.head_commit.message, '[ci skip-cs-fixer]')" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| - name: Install dependencies | |
| run: composer install --no-interaction --prefer-dist | |
| - name: Run PHP CS Fixer | |
| run: vendor/bin/php-cs-fixer fix | |
| - name: Commit and push fixes | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "style: apply PHP CS Fixer changes [ci skip-cs-fixer]" |