Use `cachePathList` to iterate over multiple cache paths

Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
pull/180/head
Kipras Melnikovas 6 years ago
parent 9a9c8d77fd
commit 197962b975
No known key found for this signature in database
GPG Key ID: AA505BC1C6D8AD90

@ -56,6 +56,7 @@ async function run(): Promise<void> {
cachePathList = [cachePath, ...cachePathList];
for (const cachePath of cachePathList) {
core.debug(`Cache Path: ${cachePath}`);
const archivePath = path.join(
@ -80,6 +81,7 @@ async function run(): Promise<void> {
core.debug(`Saving Cache (ID: ${cacheId})`);
await cacheHttpClient.saveCache(cacheId, archivePath);
}
} catch (error) {
utils.logWarning(error.message);
}

Loading…
Cancel
Save