mirror of
https://github.com/actions/cache.git
synced 2025-06-24 19:31:10 +02:00
Improve string split
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user