mirror of
https://github.com/gradle/actions.git
synced 2025-12-08 17:15:46 +08:00
Automatic caching of dependencies
in a best effort manner by default allowing to specify files to hash for computing the cache key
This commit is contained in:
@@ -7,3 +7,12 @@ export function inputOrNull(name: string): string | null {
|
||||
}
|
||||
return inputString
|
||||
}
|
||||
|
||||
export function inputArrayOrNull(name: string): string[] | null {
|
||||
const string = inputOrNull(name)
|
||||
if (!string) return null
|
||||
return string
|
||||
.split('\n')
|
||||
.map(s => s.trim())
|
||||
.filter(s => s !== '')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user