mirror of
https://git.mirrors.martin98.com/https://github.com/actions/cache
synced 2026-04-06 19:33:17 +08:00
Sort inputs and remove whitespaces after exclamation at the beginning of lines
This commit is contained in:
@@ -61,8 +61,9 @@ export function getInputAsArray(
|
||||
return core
|
||||
.getInput(name, options)
|
||||
.split("\n")
|
||||
.map(s => s.trim())
|
||||
.filter(x => x !== "");
|
||||
.map(s => s.replace(/^\!\s+/, '!').trim())
|
||||
.filter(x => x !== "")
|
||||
.sort();
|
||||
}
|
||||
|
||||
export function getInputAsInt(
|
||||
|
||||
Reference in New Issue
Block a user