Merge pull request #1 from abernard/guarantee-sorted-input

Guarantee getInputAsArray consistent across runs on separate machines
This commit is contained in:
Aaron Bernard
2023-06-05 17:37:49 -05:00
committed by GitHub

View File

@@ -38,7 +38,8 @@ export function getInputAsArray(
.getInput(name, options) .getInput(name, options)
.split("\n") .split("\n")
.map(s => s.replace(/^!\s+/, "!").trim()) .map(s => s.replace(/^!\s+/, "!").trim())
.filter(x => x !== ""); .filter(x => x !== "")
.sort();
} }
export function getInputAsInt( export function getInputAsInt(