'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.'
`::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.${osm.EOL}`
expect(warningSpy).toHaveBeenCalledWith(
// `::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.${osm.EOL}`
'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');
@ -105,19 +105,18 @@ 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'