Always initialize Gradle User Home with init script

The generated gradle.properties file and init script are not cached,
so need to be generated even when restoring from cache.
This commit is contained in:
Daz DeBoer 2021-11-27 20:35:01 -07:00
parent a72af0b6a6
commit 45ef022607
No known key found for this signature in database
GPG key ID: DD6B9F0B06683D5D
4 changed files with 55 additions and 61 deletions

View file

@ -147,7 +147,6 @@ export abstract class AbstractCache {
if (!cacheResult) {
core.info(`${this.cacheDescription} cache not found. Will initialize empty.`)
await this.initializeState()
return
}
@ -182,8 +181,6 @@ export abstract class AbstractCache {
}
}
protected async initializeState(): Promise<void> {}
protected async afterRestore(_listener: CacheListener): Promise<void> {}
async save(listener: CacheListener): Promise<void> {