MCPcopy Index your code
hub / github.com/actions/setup-java / getToolcachePath

Function getToolcachePath

src/util.ts:79–91  ·  view source on GitHub ↗
(
  toolName: string,
  version: string,
  architecture: string
)

Source from the content-addressed store, hash-verified

77}
78
79export 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
93export function isJobStatusSuccess() {
94 const jobStatus = core.getInput(INPUT_JOB_STATUS);

Callers 1

findInToolcacheFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected