mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-09-14 03:32:22 +08:00
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:
@@ -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> {
|
||||
|
Reference in New Issue
Block a user