MCPcopy Index your code
hub / github.com/actions/setup-python / run

Function run

src/cache-save.ts:10–24  ·  view source on GitHub ↗
(earlyExit?: boolean)

Source from the content-addressed store, hash-verified

8// - https://github.com/actions/setup-node/issues/878
9// https://github.com/actions/cache/pull/1217
10export async function run(earlyExit?: boolean) {
11 try {
12 const cache = core.getInput('cache');
13 if (cache) {
14 await saveCache(cache);
15
16 if (earlyExit) {
17 process.exit(0);
18 }
19 }
20 } catch (error) {
21 const err = error as Error;
22 core.setFailed(err.message);
23 }
24}
25
26async function saveCache(packageManager: string) {
27 const cachePathState = core.getState(State.CACHE_PATHS);

Callers 2

cache-save.test.tsFile · 0.90
cache-save.tsFile · 0.70

Calls 1

saveCacheFunction · 0.85

Tested by

no test coverage detected