Skip to content

Commit 36cb63f

Browse files
committed
fix: fix GHA cache save and disable uv cache warning
1 parent e2e973d commit 36cb63f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/check.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ jobs:
1414
- uses: actions/checkout@v4
1515

1616
- uses: astral-sh/setup-uv@v5
17+
with:
18+
enable-cache: false
1719

1820
- run: uv sync
1921

2022
- name: Restore state cache
23+
id: cache
2124
uses: actions/cache/restore@v4
2225
with:
2326
path: .snowy-state.json
2427
key: snowy-state
25-
restore-keys: snowy-state
2628

2729
- name: Check for new sightings
2830
env:
@@ -32,9 +34,10 @@ jobs:
3234
run: uv run snowy check --to "${{ vars.EMAIL_TO }}"
3335

3436
- name: Delete old state cache
37+
if: steps.cache.outputs.cache-hit == 'true'
3538
env:
3639
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
run: gh cache delete snowy-state || true
40+
run: gh cache delete snowy-state
3841

3942
- name: Save state cache
4043
uses: actions/cache/save@v4

0 commit comments

Comments
 (0)