Merge 6d804ec3f0d57f3de05a8f152bf87c0972b39ee1 into 97aeb3efb8a852c559869050c7fb175b4efcc8cf

This commit is contained in:
Erik Bjäreholt 2025-11-16 05:15:27 +05:00 committed by GitHub
commit 724a8e727b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,6 +67,7 @@ function resolveVersionInputFromDefaultFile(): string[] {
function resolveVersionInput() {
let versions = core.getMultilineInput('python-version');
const versionFile = core.getInput('python-version-file');
const versionStrategy = core.getInput('python-version-strategy');
if (versions.length) {
if (versionFile) {
@ -87,6 +88,9 @@ function resolveVersionInput() {
}
}
if(versionStrategy == "approximate")
versions.map(v => v.replace(">=", "~").replace("^", "~"));
return versions;
}