Skip to content

Commit

Permalink
chore: move hasfiles to steps after checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Nov 10, 2024
1 parent 4f86ee0 commit 4623c84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/uv-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ permissions:
jobs:
uv-update:
runs-on: ubuntu-24.04
if: hashFiles('uv.lock') != ''

steps:
- uses: actions/checkout@v4
Expand All @@ -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'
Expand Down

0 comments on commit 4623c84

Please sign in to comment.