diff --git a/dist/setup/index.js b/dist/setup/index.js index f5fa094..c8cf91b 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -63611,7 +63611,12 @@ function run() { if (cache && cache_utils_1.isCacheFeatureAvailable()) { const packageManager = 'default'; const cacheDependencyPath = core.getInput('cache-dependency-path'); - yield cache_restore_1.restoreCache(parseGoVersion(goVersion), packageManager, cacheDependencyPath); + try { + yield cache_restore_1.restoreCache(parseGoVersion(goVersion), packageManager, cacheDependencyPath); + } + catch (e) { + core.warning(`Restore cache failed: ${e.message}`); + } } // add problem matchers const matchersPath = path_1.default.join(__dirname, '../..', 'matchers.json'); diff --git a/src/main.ts b/src/main.ts index 82fc540..16f6c52 100644 --- a/src/main.ts +++ b/src/main.ts @@ -62,11 +62,15 @@ export async function run() { if (cache && isCacheFeatureAvailable()) { const packageManager = 'default'; const cacheDependencyPath = core.getInput('cache-dependency-path'); - await restoreCache( - parseGoVersion(goVersion), - packageManager, - cacheDependencyPath - ); + try { + await restoreCache( + parseGoVersion(goVersion), + packageManager, + cacheDependencyPath + ); + } catch (e) { + core.warning(`Restore cache failed: ${e.message}`) + } } // add problem matchers