mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-06-07 08:46:10 +02: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:
parent
a72af0b6a6
commit
45ef022607
4 changed files with 55 additions and 61 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue