Report on read-only / write-only cache

This commit is contained in:
Daz DeBoer
2022-06-02 22:44:08 -06:00
parent 143774290e
commit 7b79b2a752
3 changed files with 27 additions and 10 deletions

View File

@@ -35,6 +35,7 @@ export async function restore(gradleUserHome: string, cacheListener: CacheListen
if (isCacheWriteOnly()) {
core.info('Cache is write-only: will not restore from cache.')
cacheListener.isCacheWriteOnly = true
return
}
@@ -50,6 +51,7 @@ export async function save(gradleUserHome: string, cacheListener: CacheListener)
if (isCacheReadOnly()) {
core.info('Cache is read-only: will not save state for use in subsequent builds.')
cacheListener.isCacheReadOnly = true
return
}