fix: fix #566
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: autofix.ci # needed to securely identify the workflow | |
on: | |
pull_request: | |
push: | |
branches: ['*'] | |
permissions: | |
contents: write | |
jobs: | |
autofix: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Set node version to 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: install lfs | |
run: git lfs install | |
- name: trigger lfs | |
run: git config user.email "464806884@qq.com" && git config user.name "zerolee" && git commit -am 'trigger lfs' --allow-empty | |
- run: pnpm install | |
- name: Run prettier | |
run: pnpm run format | |
- uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc |