Improve string split

This commit is contained in:
Dave Hadka 2020-06-02 10:21:03 -05:00
parent e561127c3e
commit d60d2bef10
8 changed files with 95 additions and 27 deletions

View file

@ -31,10 +31,9 @@ async function run(): Promise<void> {
return;
}
const cachePaths = core
.getInput(Inputs.Path, { required: true })
.split("\n")
.filter(x => x !== "");
const cachePaths = utils.getInputAsArray(Inputs.Path, {
required: true
});
try {
await cache.saveCache(cachePaths, primaryKey);