mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-04-16 16:40:17 +00:00
feat: added use-mirror parameter
This commit is contained in:
parent
7b222e12b6
commit
c4b2130c2c
9 changed files with 57 additions and 3 deletions
|
|
@ -41,6 +41,7 @@ export interface SetupInputs {
|
|||
manifestFile?: string;
|
||||
addProblemMatchers: boolean;
|
||||
resolutionStrategy: ResolutionStrategy;
|
||||
useMirror: boolean;
|
||||
}
|
||||
|
||||
export function loadInputs(): SetupInputs {
|
||||
|
|
@ -73,6 +74,7 @@ export function loadInputs(): SetupInputs {
|
|||
const manifestFile = getManifestFile();
|
||||
const addProblemMatchers = core.getInput("add-problem-matchers") === "true";
|
||||
const resolutionStrategy = getResolutionStrategy();
|
||||
const useMirror = core.getInput("use-mirror") === "true";
|
||||
|
||||
return {
|
||||
activateEnvironment,
|
||||
|
|
@ -95,6 +97,7 @@ export function loadInputs(): SetupInputs {
|
|||
saveCache,
|
||||
toolBinDir,
|
||||
toolDir,
|
||||
useMirror,
|
||||
venvPath,
|
||||
version,
|
||||
versionFile,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue