fix: Replace throw with warn

Signed-off-by: jongwooo <jongwooo.han@gmail.com>
This commit is contained in:
jongwooo 2022-12-15 23:21:00 +09:00
parent 32b1479849
commit 0423e9389b
4 changed files with 11 additions and 9 deletions

View file

@ -68710,7 +68710,8 @@ function isCacheFeatureAvailable() {
return true;
}
if (isGhes()) {
throw new Error('Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.');
core.warning('Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.');
return false;
}
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
return false;

3
dist/setup/index.js vendored
View file

@ -105403,7 +105403,8 @@ function isCacheFeatureAvailable() {
return true;
}
if (isGhes()) {
throw new Error('Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.');
core.warning('Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.');
return false;
}
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
return false;