From cba32b406fafee845344eecf5eb8edb16018616c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Fri, 27 Feb 2026 17:01:21 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(action):=20skip=20uv=20insta?= =?UTF-8?q?ll=20when=20already=20present?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Users who run setup-uv earlier in their workflow get a redundant second installation when this action unconditionally calls setup-uv again. Detect uv on PATH before the install step and skip setup-uv if it's already available. This keeps the action self-contained for standalone use while avoiding duplicate installs in combined workflows. Closes #7 --- action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/action.yml b/action.yml index 5aaf6ae..f3ec8f6 100644 --- a/action.yml +++ b/action.yml @@ -8,7 +8,12 @@ inputs: runs: using: composite steps: + - name: Check if uv is already installed + id: check-uv + run: command -v uv && echo "installed=true" >> "$GITHUB_OUTPUT" || echo "installed=false" >> "$GITHUB_OUTPUT" + shell: bash - name: Install the latest version of uv + if: steps.check-uv.outputs.installed != 'true' uses: astral-sh/setup-uv@v7 with: enable-cache: true