mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-25 14:56:18 +08:00
Re-enable cache-cleanup on Windows
This commit is contained in:
parent
8be955ee80
commit
82bc72e1e7
@ -7,7 +7,7 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
runner-os:
|
runner-os:
|
||||||
type: string
|
type: string
|
||||||
default: '["ubuntu-latest", "macos-latest"]' # Windows is not yet supported
|
default: '["ubuntu-latest", "windows-latest", "macos-latest"]'
|
||||||
download-dist:
|
download-dist:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
@ -48,14 +48,7 @@ export function isCacheDebuggingEnabled(): boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function isCacheCleanupEnabled(): boolean {
|
export function isCacheCleanupEnabled(): boolean {
|
||||||
const userEnabled = core.getBooleanInput(CACHE_CLEANUP_ENABLED_PARAMETER)
|
return 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…
x
Reference in New Issue
Block a user