ci: replace pre-commit with prek #2
Workflow file for this run
This file contains hidden or 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: Prek Auto Fix | |
| on: | |
| pull_request: | |
| branches: [main,stable] | |
| permissions: | |
| contents: write | |
| jobs: | |
| prek-fix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| fetch-depth: 0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Run prek on PR changes | |
| run: uv run prek run --origin origin/${{ github.base_ref }} --source HEAD || true | |
| - name: Auto Commit Fixes | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| commit_message: "auto fixes by prek [skip ci]" |