mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-03-14 22:26:58 +01:00
Merge 6d804ec3f0
into 6ca8e8598f
This commit is contained in:
commit
7acc3a27af
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue