()
| 303 | } |
| 304 | |
| 305 | export 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 | } |
no test coverage detected