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
commit 83f8567089
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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