Update install-python.ts

This commit is contained in:
GolanTrevize10 2025-07-24 17:39:19 +02:00 committed by GitHub
parent 66a2194d64
commit 88907341c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,7 +126,8 @@ export async function installCpythonFromRelease(release: tc.IToolRelease) {
throw new Error('No files found in the release to download.');
}
const downloadUrl = !PYTHON_DOWNLOAD_BASE_URL ? release.files[0].download_url : release.files[0].download_url.replace("https://github.com/", PYTHON_DOWNLOAD_BASE_URL);
core.info(`base url "${PYTHON_DOWNLOAD_BASE_URL}")
core.info(`Download from "${downloadUrl}"`);
let pythonPath = '';
try {