1
0
Fork 0
mirror of https://github.com/actions/cache.git synced 2025-07-06 08:32:53 +00:00

Release v1.0.3

This commit is contained in:
Josh Gross 2019-11-21 14:57:29 -05:00
parent 44543250bd
commit cffae9552b
12 changed files with 114 additions and 52 deletions

View file

@ -61,11 +61,12 @@ export async function getCacheEntry(
throw new Error(`Cache service responded with ${response.statusCode}`);
}
const cacheResult = response.result;
core.debug(`Cache Result:`);
core.debug(JSON.stringify(cacheResult));
if (!cacheResult || !cacheResult.archiveLocation) {
throw new Error("Cache not found.");
}
core.setSecret(cacheResult.archiveLocation);
core.debug(`Cache Result:`);
core.debug(JSON.stringify(cacheResult));
return cacheResult;
}