Skip to content

Commit

Permalink
chore: try to restore a previous copy of cache on cache-miss
Browse files Browse the repository at this point in the history
Part of #1656
  • Loading branch information
php-coder committed Jan 5, 2024
1 parent 04ce410 commit 3e76317
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/populate-maven-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ jobs:
- name: Restore existing cache
uses: actions/[email protected] # 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

0 comments on commit 3e76317

Please sign in to comment.