'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.';
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;
}
if(isGhes()){
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.');
returnfalse;
}
returntrue;
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');
}
if(cache.isFeatureAvailable()){
returntrue;
}
if(isGhes()){
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.');
returnfalse;
}
returntrue;
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
@ -57,19 +57,19 @@ 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;
}
if(isGhes()){
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.'
);
returnfalse;
}
returntrue;
core.warning(
'The runner was not able to contact the cache service. Caching will be skipped'