Do not abort build on save cache error

pull/332/head
Sergey Dolin 2 years ago
parent e1350d01c5
commit c09fdc8076

@ -60356,7 +60356,7 @@ function run() {
if (typeof error === 'string') {
message = error;
}
core.setFailed(message);
core.warning(message);
}
});
}

@ -23,7 +23,7 @@ export async function run() {
if (typeof error === 'string') {
message = error;
}
core.setFailed(message);
core.warning(message);
}
}

@ -62,14 +62,14 @@ export async function run() {
if (cache && isCacheFeatureAvailable()) {
const packageManager = 'default';
const cacheDependencyPath = core.getInput('cache-dependency-path');
try {
try {
await restoreCache(
parseGoVersion(goVersion),
packageManager,
cacheDependencyPath
parseGoVersion(goVersion),
packageManager,
cacheDependencyPath
);
} catch (e) {
core.warning(`Restore cache failed: ${e.message}`)
core.warning(`Restore cache failed: ${e.message}`);
}
}

Loading…
Cancel
Save