feat: added use-mirror parameter

This commit is contained in:
Joe Crowley 2026-04-08 17:18:04 +08:00
parent 7b222e12b6
commit c4b2130c2c
9 changed files with 57 additions and 3 deletions

View file

@ -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,