PHP CodeStyler
Usage
Check Only
Default options.
- uses: TheDragonCode/php-codestyler@v1
with:
path: 'src tests'
fix: false
Can fix
- name: Git setup
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- uses: TheDragonCode/php-codestyler@v1
with:
path: 'src tests'
fix: true
- name: Commit changes
id: commit
if: success()
run: |
IS_DIRTY=1
{ git add . && git commit -a -m "Codestyle fixed"; } || IS_DIRTY=0
echo ::set-output name=is_dirty::${IS_DIRTY}
- name: Push changes
uses: ad-m/github-push-action@master
if: success() && steps.commit.outputs.is_dirty == 1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
License
This package is licensed under the MIT License.