( toolName: string, version: string, architecture: string )
| 77 | } |
| 78 | |
| 79 | export function getToolcachePath( |
| 80 | toolName: string, |
| 81 | version: string, |
| 82 | architecture: string |
| 83 | ) { |
| 84 | const toolcacheRoot = process.env['RUNNER_TOOL_CACHE'] ?? ''; |
| 85 | const fullPath = path.join(toolcacheRoot, toolName, version, architecture); |
| 86 | if (fs.existsSync(fullPath)) { |
| 87 | return fullPath; |
| 88 | } |
| 89 | |
| 90 | return null; |
| 91 | } |
| 92 | |
| 93 | export function isJobStatusSuccess() { |
| 94 | const jobStatus = core.getInput(INPUT_JOB_STATUS); |