From 19fd8ef7d86c7f609df984707de79b84148b6453 Mon Sep 17 00:00:00 2001 From: Pablo Gomez Date: Wed, 13 Aug 2025 16:53:18 +0200 Subject: [PATCH] chore(format): run prettier on install-python.ts --- src/install-python.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/install-python.ts b/src/install-python.ts index dfa0498f..14362ca1 100644 --- a/src/install-python.ts +++ b/src/install-python.ts @@ -125,9 +125,13 @@ export async function installCpythonFromRelease(release: tc.IToolRelease) { if (!release.files || release.files.length === 0) { 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); - - + 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(`Download from "${downloadUrl}"`); let pythonPath = ''; try {