Do not abort build on save cache error

This commit is contained in:
Sergey Dolin 2023-02-14 19:44:40 +01:00
parent e1350d01c5
commit c09fdc8076
3 changed files with 7 additions and 7 deletions

View file

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

View file

@ -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);
} }
} }

View file

@ -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}`);
} }
} }