Skip to content

Commit 3e76317

Browse files
committed
chore: try to restore a previous copy of cache on cache-miss
Part of #1656
1 parent 04ce410 commit 3e76317

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/populate-maven-cache.yml

+2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ jobs:
4545
- name: Restore existing cache
4646
uses: actions/[email protected] # https://github.com/actions/cache
4747
with:
48+
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#input-parameters-for-the-cache-action
4849
key: maven-repository-${{ hashFiles('pom.xml') }}
4950
path: ~/.m2/repository
51+
restore-keys: maven-repository-
5052

5153
- name: Download all dependencies
5254
run: mvn --no-transfer-progress dependency:resolve dependency:resolve-plugins

0 commit comments

Comments
 (0)