mirror of
https://github.com/actions/setup-node.git
synced 2025-07-27 00:48:24 +02:00
Show warning instead of failure when cache is not reachable
This commit is contained in:
parent
eeb10cff27
commit
dfc4b745b4
4 changed files with 13 additions and 6 deletions
|
@ -107,7 +107,7 @@ export function isGhes(): boolean {
|
|||
export function isCacheFeatureAvailable(): boolean {
|
||||
if (!cache.isFeatureAvailable()) {
|
||||
if (isGhes()) {
|
||||
throw new Error(
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue