From 3e76317db866e245258ffd3c0d81e1154f4ad231 Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Fri, 5 Jan 2024 21:16:24 +0700 Subject: [PATCH] chore: try to restore a previous copy of cache on cache-miss Part of #1656 --- .github/workflows/populate-maven-cache.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/populate-maven-cache.yml b/.github/workflows/populate-maven-cache.yml index 3cb1e31f0..a74c51b53 100644 --- a/.github/workflows/populate-maven-cache.yml +++ b/.github/workflows/populate-maven-cache.yml @@ -45,8 +45,10 @@ jobs: - name: Restore existing cache uses: actions/cache@v3.3.2 # https://github.com/actions/cache with: + # https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#input-parameters-for-the-cache-action key: maven-repository-${{ hashFiles('pom.xml') }} path: ~/.m2/repository + restore-keys: maven-repository- - name: Download all dependencies run: mvn --no-transfer-progress dependency:resolve dependency:resolve-plugins