Unverified Commit 4137be6a authored by Daz DeBoer's avatar Daz DeBoer
Browse files

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
parent 4e899835
Loading
Loading
Loading
Loading
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2
Changes for src/cache-base.ts: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ export abstract class AbstractCache {

    async save(listener: CacheListener): Promise<void> {
        if (!this.cacheOutputExists()) {
            this.debug(`No ${this.cacheDescription} to cache.`)
            core.info(`No ${this.cacheDescription} to cache.`)
            return
        }

@@ -193,7 +193,7 @@ export abstract class AbstractCache {
        const cacheResult = core.getState(this.cacheResultStateKey)

        if (!cacheKey) {
            this.debug(`${this.cacheDescription} existed prior to cache restore. Not saving.`)
            core.info(`${this.cacheDescription} existed prior to cache restore. Not saving.`)
            return
        }

Loading