mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-07-06 23:35:59 +02:00
Improved cache reporting
- Fix count of saved entries - Catch and report errors on save and restore - Correctly report entries that are never requested
This commit is contained in:
parent
cbebff71e9
commit
b49446f8e1
4 changed files with 24 additions and 10 deletions
|
@ -213,7 +213,7 @@ abstract class AbstractEntryExtractor {
|
|||
|
||||
if (previouslyRestoredKey === cacheKey) {
|
||||
cacheDebug(`No change to previously restored ${artifactType}. Not saving.`)
|
||||
entryListener.markUnsaved('contents unchanged')
|
||||
entryListener.markNotSaved('contents unchanged')
|
||||
} else {
|
||||
core.info(`Caching ${artifactType} with path '${pattern}' and cache key: ${cacheKey}`)
|
||||
await saveCache([pattern], cacheKey, entryListener)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue