mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-11-05 17:36:49 +00:00
committed by
GitHub
parent
f9c6974d8b
commit
f2859da213
@@ -6,6 +6,7 @@ import {
|
||||
STATE_CACHE_KEY,
|
||||
STATE_CACHE_MATCHED_KEY,
|
||||
} from "./cache/restore-cache";
|
||||
import { STATE_UV_PATH } from "./utils/constants";
|
||||
import {
|
||||
cacheLocalPath,
|
||||
enableCache,
|
||||
@@ -91,7 +92,8 @@ async function pruneCache(): Promise<void> {
|
||||
const execArgs = ["cache", "prune", "--ci"];
|
||||
|
||||
core.info("Pruning cache...");
|
||||
await exec.exec("uv", execArgs, options);
|
||||
const uvPath = core.getState(STATE_UV_PATH);
|
||||
await exec.exec(uvPath, execArgs, options);
|
||||
}
|
||||
|
||||
run();
|
||||
|
||||
Reference in New Issue
Block a user