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