This commit is contained in:
Erik Bjäreholt 2024-10-04 15:53:38 -04:00 committed by GitHub
commit e84b758cae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

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