This commit is contained in:
GolanTrevize10 2025-09-04 07:19:51 -07:00 committed by GitHub
commit 7e54de9bf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 3 deletions

5
dist/setup/index.js vendored
View file

@ -97762,6 +97762,7 @@ const MANIFEST_REPO_OWNER = 'actions';
const MANIFEST_REPO_NAME = 'python-versions';
const MANIFEST_REPO_BRANCH = 'main';
exports.MANIFEST_URL = `https://raw.githubusercontent.com/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`;
const PYTHON_DOWNLOAD_BASE_URL = core.getInput('python_download_base_url');
function findReleaseFromManifest(semanticVersionSpec, architecture, manifest) {
return __awaiter(this, void 0, void 0, function* () {
if (!manifest) {
@ -97852,7 +97853,9 @@ function installCpythonFromRelease(release) {
if (!release.files || release.files.length === 0) {
throw new Error('No files found in the release to download.');
}
const downloadUrl = release.files[0].download_url;
const downloadUrl = !PYTHON_DOWNLOAD_BASE_URL
? release.files[0].download_url
: release.files[0].download_url.replace('https://github.com/actions/python-versions/releases/download', PYTHON_DOWNLOAD_BASE_URL);
core.info(`Download from "${downloadUrl}"`);
let pythonPath = '';
try {