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

Function isCacheFeatureAvailable

src/util.ts:112–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110}
111
112export function isCacheFeatureAvailable(): boolean {
113 if (cache.isFeatureAvailable()) {
114 return true;
115 }
116
117 if (isGhes()) {
118 core.warning(
119 'Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.'
120 );
121 return false;
122 }
123
124 core.warning(
125 'The runner was not able to contact the cache service. Caching will be skipped'
126 );
127 return false;
128}
129
130export function getVersionFromFileContent(
131 content: string,

Callers 2

runFunction · 0.90
util.test.tsFile · 0.90

Calls 1

isGhesFunction · 0.85

Tested by

no test coverage detected