()
| 126 | } |
| 127 | |
| 128 | export 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 | |
| 146 | export function logWarning(message: string): void { |
| 147 | const warningPrefix = '[warning]'; |
no test coverage detected