1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2025-06-08 06:27:00 +09:00
This commit is contained in:
Erik Bjäreholt 2025-04-25 19:24:18 +05:30 committed by GitHub
commit 4923b391a2
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -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;
}