Initial changes

This commit is contained in:
Shubham Tiwari
2022-06-25 20:23:34 +00:00
committed by GitHub
parent cdcc53e14f
commit 60ad0741c0
5 changed files with 1665 additions and 62 deletions

View File

@@ -50,16 +50,14 @@ const cachePackages = async (packageManager: string) => {
}
try {
await cache.saveCache([cachePath], primaryKey);
const cacheId = await cache.saveCache([cachePath], primaryKey);
if (cacheId == -1) {
return;
}
core.info(`Cache saved with the key: ${primaryKey}`);
} catch (error) {
if (error.name === cache.ValidationError.name) {
throw error;
} else if (error.name === cache.ReserveCacheError.name) {
core.info(error.message);
} else {
core.warning(`${error.message}`);
}
core.warning(`${error.message}`);
}
};