mirror of https://github.com/actions/setup-python
Compare commits
2 Commits
cff6940f95
...
e84b758cae
Author | SHA1 | Date |
---|---|---|
Erik Bjäreholt | e84b758cae | |
Erik Bjäreholt | 6d804ec3f0 |
|
@ -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…
Reference in New Issue