Merge 6d804ec3f0d57f3de05a8f152bf87c0972b39ee1 into 2bd53f9a4d1dd1cd21eaffcc01a7b91a8e73ea4c
This commit is contained in:
commit
0e7920948b
@ -53,6 +53,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) {
|
||||
@ -73,6 +74,9 @@ function resolveVersionInput() {
|
||||
}
|
||||
}
|
||||
|
||||
if(versionStrategy == "approximate")
|
||||
versions.map(v => v.replace(">=", "~").replace("^", "~"));
|
||||
|
||||
return versions;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user