generated from CUG-hydro/computational-thinking-template
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (22 loc) · 967 Bytes
/
KeepCacheFresh.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Keep caches fresh
on:
schedule:
- cron: "5 4 1/4 * *" # every 4 days
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: ⏱ Cache notebook states
uses: actions/cache@v2
with:
path: _cache
key: ${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
- name: ⏱ Cache .julia
uses: actions/cache@v2
with:
path: ~/.julia
key: ${{ runner.os }}-dotjulia-v1-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-dotjulia-v1-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}