MCPcopy Index your code
hub / github.com/actions/setup-node / isCacheFeatureAvailable

Function isCacheFeatureAvailable

src/cache-utils.ts:305–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303}
304
305export function isCacheFeatureAvailable(): boolean {
306 if (cache.isFeatureAvailable()) return true;
307
308 if (isGhes()) {
309 core.warning(
310 '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.'
311 );
312 return false;
313 }
314
315 core.warning(
316 'The runner was not able to contact the cache service. Caching will be skipped'
317 );
318
319 return false;
320}

Callers 2

runFunction · 0.90

Calls 1

isGhesFunction · 0.85

Tested by

no test coverage detected