* Defines the cache paths * It is the folder where kind will be stored in the tool-cache * per it's version and process architecture * @param version * @returns the cache paths
(version: string)
| 57 | * @returns the cache paths |
| 58 | */ |
| 59 | function kindCachePaths(version: string) { |
| 60 | return [ |
| 61 | path.join( |
| 62 | `${process.env['RUNNER_TOOL_CACHE']}`, |
| 63 | KIND_TOOL_NAME, |
| 64 | semver.clean(version) || version |
| 65 | ), |
| 66 | ]; |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * Defines a primary Key for the kind cache. |