Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: allow to pick which version to use by only removing platform_ver…
…sion for this version
  • Loading branch information
loopingz committed Aug 30, 2024
commit 05b0430d2d0525a63c8ea5bc7d09fc0e14911520
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ inputs:
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
description: "Ignore the specific platform version to allow usage on Debian"
default: ""
required: false
outputs:
python-version:
Expand Down
5 changes: 4 additions & 1 deletion dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71732,7 +71732,10 @@ function getManifest() {
// Display each tool
manifest.forEach(tool => {
tool.files.forEach(f => {
f.platform_version = undefined;
if (f.platform_version === core.getInput('ignore-platform-version') ||
'all' === core.getInput('ignore-platform-version')) {
f.platform_version = undefined;
}
});
});
}
Expand Down
7 changes: 6 additions & 1 deletion src/install-python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ export async function getManifest(): Promise<tc.IToolRelease[]> {
// Display each tool
manifest.forEach(tool => {
tool.files.forEach(f => {
f.platform_version = undefined;
if (
f.platform_version === core.getInput('ignore-platform-version') ||
'all' === core.getInput('ignore-platform-version')
) {
f.platform_version = undefined;
}
});
});
}
Expand Down