1 parent e2e973d commit 36cb63fCopy full SHA for 36cb63f
1 file changed
.github/workflows/check.yml
@@ -14,15 +14,17 @@ jobs:
14
- uses: actions/checkout@v4
15
16
- uses: astral-sh/setup-uv@v5
17
+ with:
18
+ enable-cache: false
19
20
- run: uv sync
21
22
- name: Restore state cache
23
+ id: cache
24
uses: actions/cache/restore@v4
25
with:
26
path: .snowy-state.json
27
key: snowy-state
- restore-keys: snowy-state
28
29
- name: Check for new sightings
30
env:
@@ -32,9 +34,10 @@ jobs:
32
34
run: uv run snowy check --to "${{ vars.EMAIL_TO }}"
33
35
36
- name: Delete old state cache
37
+ if: steps.cache.outputs.cache-hit == 'true'
38
39
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: gh cache delete snowy-state || true
40
+ run: gh cache delete snowy-state
41
42
- name: Save state cache
43
uses: actions/cache/save@v4
0 commit comments