From 4623c844565e8f666591bbdce83cce82842a566c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Sun, 10 Nov 2024 19:32:04 +0100 Subject: [PATCH] chore: move hasfiles to steps after checkout --- .github/workflows/uv-upgrade.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/uv-upgrade.yml b/.github/workflows/uv-upgrade.yml index 1eefb85..3c3a486 100644 --- a/.github/workflows/uv-upgrade.yml +++ b/.github/workflows/uv-upgrade.yml @@ -22,7 +22,6 @@ permissions: jobs: uv-update: runs-on: ubuntu-24.04 - if: hashFiles('uv.lock') != '' steps: - uses: actions/checkout@v4 @@ -47,10 +46,11 @@ jobs: python-version: 3.13 - name: Lockfile maintenance - if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' + if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')) && hashFiles('uv.lock') != '' run: uv lock --upgrade --no-sources - run: uv sync --all-extras --no-sources + if: hashFiles('uv.lock') != '' - name: Update current branch if: github.ref != 'refs/heads/main'