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') { if (typeof error === 'string') {
message = error; message = error;
} }
core.setFailed(message); core.warning(message);
} }
}); });
} }

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

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

Loading…
Cancel
Save