From c67d81d53adfbc4f272eb4dc5ae7e7fb7d9d773d Mon Sep 17 00:00:00 2001 From: Matthias Schoettle Date: Thu, 6 Mar 2025 18:48:31 +0000 Subject: [PATCH] fix: support uv run as well --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 869edb5..79e1114 100644 --- a/action.yml +++ b/action.yml @@ -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