mirror of
https://github.com/pre-commit/action.git
synced 2025-11-07 10:46:56 +00:00
fix: support uv run as well
This commit is contained in:
parent
93b6e00b4d
commit
c67d81d53a
1 changed files with 4 additions and 1 deletions
|
|
@ -8,9 +8,12 @@ inputs:
|
|||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- run: echo "pythonLocation=$(which python)" >> "$GITHUB_ENV"
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pre-commit
|
||||
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||
- run: uvx pre-commit run --show-diff-on-failure --color=always ${{ inputs.extra_args }}
|
||||
- run: |
|
||||
which pre-commit
|
||||
uv run pre-commit run --show-diff-on-failure --color=always ${{ inputs.extra_args }}
|
||||
shell: bash
|
||||
|
|
|
|||
Loading…
Reference in a new issue