mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-04-15 16:55:43 +00:00
Add tool bin dir to PATH on windows
This commit is contained in:
parent
8205eab75b
commit
561bff6f70
7 changed files with 100 additions and 5 deletions
|
|
@ -6,8 +6,20 @@ export const checkSum = core.getInput("checksum");
|
|||
export const enableCache = core.getInput("enable-cache") === "true";
|
||||
export const cacheSuffix = core.getInput("cache-suffix") || "";
|
||||
export const cacheLocalPath = getCacheLocalPath();
|
||||
export const githubToken = core.getInput("github-token");
|
||||
export const cacheDependencyGlob = core.getInput("cache-dependency-glob");
|
||||
export const toolBinDir = getToolBinDir();
|
||||
export const githubToken = core.getInput("github-token");
|
||||
|
||||
function getToolBinDir(): string | undefined {
|
||||
const toolBinDirInput = core.getInput("tool-bin-dir");
|
||||
if (toolBinDirInput !== "") {
|
||||
return toolBinDirInput;
|
||||
}
|
||||
if (process.platform === "win32") {
|
||||
return "D:\\a\\_temp\\uv-tool-bin-dir";
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
function getCacheLocalPath(): string {
|
||||
const cacheLocalPathInput = core.getInput("cache-local-path");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue