Skip to content

Commit a23f495

Browse files
committed
use actions/cache@v2
1 parent 6d4159c commit a23f495

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/job.test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defaults:
1717

1818
env:
1919
# Increase this value to reset all caches
20-
CACHE_EPOCH: 0
20+
CACHE_EPOCH: 1
2121

2222
JLPM_CMD: jlpm --ignore-optional --prefer-offline --frozen-lockfile
2323

@@ -47,7 +47,7 @@ jobs:
4747
nodejs: '${{ matrix.nodejs }}'
4848

4949
- name: Cache conda
50-
uses: actions/cache@v1
50+
uses: actions/cache@v2
5151
with:
5252
path: ~/conda_pkgs_dir
5353
key: |
@@ -79,7 +79,7 @@ jobs:
7979
- name: Cache yarn packages
8080
id: cache-yarn-packages
8181
if: steps.cache-node-modules.outputs.cache-hit != 'true'
82-
uses: actions/cache@v1
82+
uses: actions/cache@v2
8383
with:
8484
path: .yarn-packages
8585
key: ${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
@@ -124,7 +124,7 @@ jobs:
124124
nodejs: '${{ matrix.nodejs }}'
125125

126126
- name: Cache conda
127-
uses: actions/cache@v1
127+
uses: actions/cache@v2
128128
with:
129129
path: ~/conda_pkgs_dir
130130
key: |
@@ -152,7 +152,7 @@ jobs:
152152
- name: Cache yarn packages
153153
id: cache-yarn-packages
154154
if: steps.cache-node-modules.outputs.cache-hit != 'true'
155-
uses: actions/cache@v1
155+
uses: actions/cache@v2
156156
with:
157157
path: .yarn-packages
158158
key: ${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
@@ -242,7 +242,7 @@ jobs:
242242
nodejs: '${{ matrix.nodejs }}'
243243

244244
- name: Cache conda
245-
uses: actions/cache@v1
245+
uses: actions/cache@v2
246246
with:
247247
path: ~/conda_pkgs_dir
248248
key: |
@@ -271,7 +271,7 @@ jobs:
271271
- name: Cache yarn packages
272272
id: cache-yarn-packages
273273
if: steps.cache-node-modules.outputs.cache-hit != 'true'
274-
uses: actions/cache@v1
274+
uses: actions/cache@v2
275275
with:
276276
path: .yarn-packages
277277
key: ${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

0 commit comments

Comments
 (0)