From 6bb0cd09a83b84a1532e8f8f6ebae02b859ac4ca Mon Sep 17 00:00:00 2001 From: Ricardo Cino Date: Mon, 13 Jun 2022 13:42:07 +0000 Subject: [PATCH] Actually commit dist files --- dist/cache-save/index.js | 2 +- dist/setup/index.js | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dist/cache-save/index.js b/dist/cache-save/index.js index 83c5bcbf..7be2bb20 100644 --- a/dist/cache-save/index.js +++ b/dist/cache-save/index.js @@ -59209,7 +59209,7 @@ exports.isGhes = isGhes; function isCacheFeatureAvailable() { if (!cache.isFeatureAvailable()) { if (isGhes()) { - throw new Error('Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.'); + core.warning('Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.'); } else { core.warning('The runner was not able to contact the cache service. Caching will be skipped'); diff --git a/dist/setup/index.js b/dist/setup/index.js index 7ce48af5..0e52fb50 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -70545,7 +70545,7 @@ exports.isGhes = isGhes; function isCacheFeatureAvailable() { if (!cache.isFeatureAvailable()) { if (isGhes()) { - throw new Error('Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.'); + core.warning('Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.'); } else { core.warning('The runner was not able to contact the cache service. Caching will be skipped'); @@ -71027,7 +71027,6 @@ function run() { // let version = resolveVersionInput(); let arch = core.getInput('architecture'); - const cache = core.getInput('cache'); // if architecture supplied but node-version is not // if we don't throw a warning, the already installed x64 node will be used which is not probably what user meant. if (arch && !version) { @@ -71043,6 +71042,12 @@ function run() { const checkLatest = (core.getInput('check-latest') || 'false').toUpperCase() === 'TRUE'; yield installer.getNode(version, stable, checkLatest, auth, arch); } + } + catch (err) { + core.setFailed(err.message); + } + try { + const cache = core.getInput('cache'); const registryUrl = core.getInput('registry-url'); const alwaysAuth = core.getInput('always-auth'); if (registryUrl) { @@ -71058,7 +71063,7 @@ function run() { core.info(`##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}`); } catch (err) { - core.setFailed(err.message); + core.warning(err.message); } }); }