()
| 110 | } |
| 111 | |
| 112 | export 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 | |
| 130 | export function getVersionFromFileContent( |
| 131 | content: string, |
no test coverage detected