name: Lint AutoFix on: pull_request: branches: - main - docusaurus-v** concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: lint-autofix: name: Lint AutoFix runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - name: Installation run: yarn - name: AutoFix Format run: yarn format - name: AutoFix JS run: yarn lint:js:fix - name: AutoFix Style run: yarn lint:style:fix - name: AutoFix Spelling run: yarn lint:spelling:fix - uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: 'refactor: apply lint autofix'