From f97cfde4d563147648bd38acf87513916b2e44ff Mon Sep 17 00:00:00 2001 From: Aaron Bernard Date: Mon, 5 Jun 2023 17:30:43 -0500 Subject: [PATCH] guarantee getInputAsArray consistent across runs on separate machines --- src/utils/actionUtils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/actionUtils.ts b/src/utils/actionUtils.ts index dc18fa4..6f27e6c 100644 --- a/src/utils/actionUtils.ts +++ b/src/utils/actionUtils.ts @@ -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(