doc update #74
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: CodeQuality | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
php-cs-fixer: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.PAT }} | |
- name: Setup PHP Action | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.0' | |
tools: php-cs-fixer:3.22.0 | |
- name: Code Reformatting... | |
run: php-cs-fixer fix -v --allow-risky=yes --config=./.php-cs-fixer.php | |
- name: Commit Reformated Code | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
branch: ${{ github.head_ref }} | |
commit_author: lanlin <lanlin1987@github.com> | |
commit_message: code reformat workflow | |
commit_user_name: lanlin | |
commit_user_email: lanlin1987@gmail.com |