mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-03-31 20:17:48 +02:00
Merge pull request #1 from abernard/guarantee-sorted-input
Guarantee getInputAsArray consistent across runs on separate machines
This commit is contained in:
commit
83f8567089
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue