mirror of
https://github.com/actions/setup-python.git
synced 2025-12-09 06:05:19 +00:00
Merge 6d804ec3f0d57f3de05a8f152bf87c0972b39ee1 into 97aeb3efb8a852c559869050c7fb175b4efcc8cf
This commit is contained in:
commit
724a8e727b
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user