[ci] Avoid caching missed dependencies
When a dependency is not available, maven creates a file with extension .lastUpdated. When such a file is present maven usually doesn't check again for updates (unless -U is used).
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -48,6 +48,8 @@ jobs:
|
|||||||
~/.cache
|
~/.cache
|
||||||
~/work/pmd/target/repositories
|
~/work/pmd/target/repositories
|
||||||
vendor/bundle
|
vendor/bundle
|
||||||
|
# avoid caching missed dependencies
|
||||||
|
!~/.m2/repository/**/*.lastUpdated
|
||||||
key: v3-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
|
key: v3-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
v3-${{ runner.os }}-
|
v3-${{ runner.os }}-
|
||||||
|
Reference in New Issue
Block a user