thrownewError('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');
}
returnfalse;
}
returntrue;
if(cache.isFeatureAvailable())
returntrue;
if(isGhes())
thrownewError('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('The runner was not able to contact the cache service. Caching will be skipped');
thrownewError('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');
}
returnfalse;
}
returntrue;
if(cache.isFeatureAvailable())
returntrue;
if(isGhes())
thrownewError('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('The runner was not able to contact the cache service. Caching will be skipped');
@ -105,19 +105,16 @@ export function isGhes(): boolean {
}
exportfunctionisCacheFeatureAvailable():boolean{
if(!cache.isFeatureAvailable()){
if(isGhes()){
thrownewError(
'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'
);
}
if(cache.isFeatureAvailable())returntrue;
returnfalse;
}
if(isGhes())
thrownewError(
'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(
'The runner was not able to contact the cache service. Caching will be skipped'