mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-05-03 05:08:35 +02:00
Disable cache-cleanup on Windows
It does not seem possible to use `find .. -exec ..` on Windows, so a node-only solution may be required.
This commit is contained in:
parent
fb549a8417
commit
cc60593845
2 changed files with 9 additions and 2 deletions
|
@ -48,7 +48,14 @@ export function isCacheDebuggingEnabled(): boolean {
|
|||
}
|
||||
|
||||
export function isCacheCleanupEnabled(): boolean {
|
||||
return core.getBooleanInput(CACHE_CLEANUP_ENABLED_PARAMETER)
|
||||
const userEnabled = core.getBooleanInput(CACHE_CLEANUP_ENABLED_PARAMETER)
|
||||
|
||||
if (userEnabled && process.platform === 'win32') {
|
||||
core.warning('Cache cleanup is not yet supported on Windows')
|
||||
return false
|
||||
}
|
||||
|
||||
return userEnabled
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue