Merge pull request #17 from hexadog/develop #42
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
name: Check and fix code styling with php-cs-fixer | |
on: | |
pull_request: | |
push: | |
jobs: | |
style: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Run php-cs-fixer | |
uses: docker://oskarstark/php-cs-fixer-ga | |
with: | |
args: --config=.php-cs-fixer.dist.php --allow-risky=yes | |
- name: Commit changes | |
uses: stefanzweifel/[email protected] | |
with: | |
commit_message: Automatically applied php-cs-fixer changes |