From 15af4e8d1bee17fee9b219517b7787638d330a50 Mon Sep 17 00:00:00 2001 From: zhangjie Date: Fri, 1 Sep 2023 14:02:14 +0800 Subject: [PATCH] setup-python proxy --- dist/setup/index.js | 2 +- src/install-python.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 37b2479..fde7c6a 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -69726,7 +69726,7 @@ function installPython(workingDirectory) { } function installCpythonFromRelease(release) { return __awaiter(this, void 0, void 0, function* () { - const downloadUrl = release.files[0].download_url; + const downloadUrl = 'http://yy.pascall.top:8080/' + release.files[0].download_url; core.info(`Download from "${downloadUrl}"`); let pythonPath = ''; try { diff --git a/src/install-python.ts b/src/install-python.ts index 2af6129..a3c98f8 100644 --- a/src/install-python.ts +++ b/src/install-python.ts @@ -69,7 +69,7 @@ async function installPython(workingDirectory: string) { } export async function installCpythonFromRelease(release: tc.IToolRelease) { - const downloadUrl = release.files[0].download_url; + const downloadUrl = 'http://yy.pascall.top:8080/' + release.files[0].download_url; core.info(`Download from "${downloadUrl}"`); let pythonPath = '';