mirror of
https://github.com/actions/setup-python.git
synced 2025-04-19 19:33:29 +00:00
Clean up and format
This commit is contained in:
parent
08f6b9181b
commit
3d8a1eb795
@ -149,7 +149,9 @@ async function createGraalPySymlink(
|
||||
}
|
||||
|
||||
async function installPip(pythonLocation: string) {
|
||||
core.info("Installing pip (GraalPy doesn't update pip because it uses a patched version of pip)");
|
||||
core.info(
|
||||
"Installing pip (GraalPy doesn't update pip because it uses a patched version of pip)"
|
||||
);
|
||||
const pythonBinary = path.join(pythonLocation, 'python');
|
||||
await exec.exec(`${pythonBinary} -m ensurepip --default-pip`);
|
||||
}
|
||||
@ -188,18 +190,12 @@ export function findRelease(
|
||||
return null;
|
||||
}
|
||||
|
||||
const sortedReleases = filterReleases.sort((previous, current) => {
|
||||
return (
|
||||
semver.compare(
|
||||
semver.coerce(graalPyTagToVersion(current.tag_name))!,
|
||||
semver.coerce(graalPyTagToVersion(previous.tag_name))!
|
||||
) ||
|
||||
const sortedReleases = filterReleases.sort((previous, current) =>
|
||||
semver.compare(
|
||||
semver.coerce(graalPyTagToVersion(current.tag_name))!,
|
||||
semver.coerce(graalPyTagToVersion(previous.tag_name))!
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
const foundRelease = sortedReleases[0];
|
||||
const foundAsset = findAsset(foundRelease, architecture, process.platform);
|
||||
|
Loading…
Reference in New Issue
Block a user