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

Function saveCache

src/cleanup-java.ts:27–31  ·  view source on GitHub ↗

* Check given input and run a save process for the specified package manager * @returns Promise that will be resolved when the save process finishes

()

Source from the content-addressed store, hash-verified

25 * @returns Promise that will be resolved when the save process finishes
26 */
27async function saveCache() {
28 const jobStatus = isJobStatusSuccess();
29 const cache = core.getInput(constants.INPUT_CACHE);
30 return jobStatus && cache ? save(cache) : Promise.resolve();
31}
32
33/**
34 * The save process is best-effort, and it should not make the workflow fail

Callers 1

runFunction · 0.85

Calls 2

isJobStatusSuccessFunction · 0.90
saveFunction · 0.90

Tested by

no test coverage detected