mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-10-20 07:08:56 +08:00
Minor improvement to logging in post-action
- Ensure that "Caching Gradle state" group always has 1 message - Only print cache report when entries were restored or saved
This commit is contained in:
@@ -54,6 +54,10 @@ export async function save(): Promise<void> {
|
||||
}
|
||||
|
||||
function logCachingReport(listener: CacheListener): void {
|
||||
if (listener.cacheEntries.length === 0) {
|
||||
return
|
||||
}
|
||||
|
||||
core.info(`---------- Caching Summary -------------
|
||||
Restored Entries Count: ${getCount(listener.cacheEntries, e => e.restoredSize)}
|
||||
Size: ${getSum(listener.cacheEntries, e => e.restoredSize)}
|
||||
|
Reference in New Issue
Block a user