mirror of
https://github.com/gradle/actions.git
synced 2025-12-08 17:15:46 +08:00
Add input to make the dependencies caching strict
This commit is contained in:
@@ -16,3 +16,9 @@ export function inputArrayOrNull(name: string): string[] | null {
|
||||
.map(s => s.trim())
|
||||
.filter(s => s !== '')
|
||||
}
|
||||
|
||||
export function inputBoolean(name: string, defaultValue = false): boolean {
|
||||
const string = inputOrNull(name)
|
||||
if (!string) return defaultValue
|
||||
return string === 'true'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user