Skip to content

Commit bb71174

Browse files
committed
cache tweaks
1 parent 917c5fd commit bb71174

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.github/workflows/ExportNotebooks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
uses: actions/cache@v2
2525
with:
2626
path: _cache
27-
key: ${{ runner.os }}-pluto_state_cache-v3-fall22-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}-${{ github.run_id }}
27+
key: ${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}-${{ github.run_id }}
2828
restore-keys: |
29-
${{ runner.os }}-pluto_state_cache-v3-fall22-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
29+
${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
3030
3131
- name: ⏱ Cache .julia
3232
uses: actions/cache@v2

.github/workflows/KeepCacheFresh.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Keep caches fresh
2+
on:
3+
schedule:
4+
-cron: "5 4 1/4 * *" # every 4 days
5+
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: ⏱ Cache notebook states
11+
uses: actions/cache@v2
12+
with:
13+
path: _cache
14+
key: ${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}-${{ github.run_id }}
15+
restore-keys: |
16+
${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
17+
18+
- name: ⏱ Cache .julia
19+
uses: actions/cache@v2
20+
with:
21+
path: ~/.julia
22+
key: ${{ runner.os }}-dotjulia-v1-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}-${{ github.run_id }}
23+
restore-keys: |
24+
${{ runner.os }}-dotjulia-v1-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
25+

0 commit comments

Comments
 (0)