1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-08 12:28:20 +02:00

Merge branch 'main' into ResolveVersionFix

This commit is contained in:
IvanZosimov 2022-06-30 14:40:24 +02:00
commit e29a7c89f6
9 changed files with 1781 additions and 68 deletions

View file

@ -43,17 +43,11 @@ async function saveCache(packageManager: string) {
return;
}
try {
await cache.saveCache(cachePaths, primaryKey);
core.info(`Cache saved with the key: ${primaryKey}`);
} catch (error) {
const err = error as Error;
if (err.name === cache.ReserveCacheError.name) {
core.info(err.message);
} else {
throw error;
}
const cacheId = await cache.saveCache(cachePaths, primaryKey);
if (cacheId == -1) {
return;
}
core.info(`Cache saved with the key: ${primaryKey}`);
}
function isCacheDirectoryExists(cacheDirectory: string[]) {