mirror of
https://github.com/actions/setup-python.git
synced 2024-11-24 17:38:52 +00:00
feat: add ignore-platform-version option to allow install on debian
This commit is contained in:
parent
f677139bbe
commit
427878c2d3
4 changed files with 57509 additions and 78645 deletions
|
@ -26,6 +26,10 @@ inputs:
|
|||
allow-prereleases:
|
||||
description: "When 'true', a version range passed to 'python-version' input will match prerelease versions if no GA versions are found. Only 'x.y' version range is supported for CPython."
|
||||
default: false
|
||||
ignore-platform-version:
|
||||
description: "Ignore the platform version to allow usage on Debian"
|
||||
default: false
|
||||
required: false
|
||||
outputs:
|
||||
python-version:
|
||||
description: "The installed Python or PyPy version. Useful when given a version range as input."
|
||||
|
|
67541
dist/cache-save/index.js
vendored
67541
dist/cache-save/index.js
vendored
File diff suppressed because one or more lines are too long
68596
dist/setup/index.js
vendored
68596
dist/setup/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -34,7 +34,18 @@ export async function findReleaseFromManifest(
|
|||
|
||||
export async function getManifest(): Promise<tc.IToolRelease[]> {
|
||||
try {
|
||||
return await getManifestFromRepo();
|
||||
const manifest = await getManifestFromRepo();
|
||||
|
||||
if (core.getInput('ignore-platform-version')) {
|
||||
// Display each tool
|
||||
manifest.forEach(tool => {
|
||||
tool.files.forEach(f => {
|
||||
f.platform_version = undefined;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
return manifest;
|
||||
} catch (err) {
|
||||
core.debug('Fetching the manifest via the API failed.');
|
||||
if (err instanceof Error) {
|
||||
|
|
Loading…
Reference in a new issue