[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:
Andreas Dangel 2024-04-26 15:17:12 +02:00
parent d296dc5782
commit b1834d6ead
No known key found for this signature in database
GPG Key ID: 93450DF2DF9A3FA3

View File

@ -48,6 +48,8 @@ jobs:
~/.cache
~/work/pmd/target/repositories
vendor/bundle
# avoid caching missed dependencies
!~/.m2/repository/**/*.lastUpdated
key: v3-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
v3-${{ runner.os }}-