mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
Use a properties file to disable daemon execution
Instead of passing `--no-daemon` on the command line, the same functionality is now acheived by writing a gradle.properties file when initializing Gradle User Home.
This commit is contained in:
@@ -146,7 +146,8 @@ export abstract class AbstractCache {
|
||||
const cacheResult = await this.restoreCache(this.getCachePath(), cacheKey.key, cacheKey.restoreKeys)
|
||||
|
||||
if (!cacheResult) {
|
||||
core.info(`${this.cacheDescription} cache not found. Will start with empty.`)
|
||||
core.info(`${this.cacheDescription} cache not found. Will initialize empty.`)
|
||||
await this.initializeState()
|
||||
return
|
||||
}
|
||||
|
||||
@@ -181,6 +182,8 @@ 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