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

Function isCacheFeatureAvailable

src/utils.ts:128–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126}
127
128export function isCacheFeatureAvailable(): boolean {
129 if (cache.isFeatureAvailable()) {
130 return true;
131 }
132
133 if (isGhes()) {
134 core.warning(
135 '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.'
136 );
137 return false;
138 }
139
140 core.warning(
141 'The runner was not able to contact the cache service. Caching will be skipped'
142 );
143 return false;
144}
145
146export function logWarning(message: string): void {
147 const warningPrefix = '[warning]';

Callers 2

runFunction · 0.90
utils.test.tsFile · 0.90

Calls 1

isGhesFunction · 0.85

Tested by

no test coverage detected