mirror of
https://github.com/actions/setup-python.git
synced 2025-08-27 03:04:14 +00:00
chore(format): run prettier on install-python.ts
This commit is contained in:
parent
c712311b50
commit
19fd8ef7d8
@ -125,8 +125,12 @@ export async function installCpythonFromRelease(release: tc.IToolRelease) {
|
|||||||
if (!release.files || release.files.length === 0) {
|
if (!release.files || release.files.length === 0) {
|
||||||
throw new Error('No files found in the release to download.');
|
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}"`);
|
core.info(`Download from "${downloadUrl}"`);
|
||||||
let pythonPath = '';
|
let pythonPath = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user