Skip to content

Commit

Permalink
Allow python version bouns just with TOMLs
Browse files Browse the repository at this point in the history
  • Loading branch information
dariocurr committed Jun 28, 2023
1 parent 556ac3e commit 39c1ae5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69731,7 +69731,6 @@ function resolveVersionInput() {
versions = resolveVersionInputFromDefaultFile();
}
}
versions = Array.from(versions, version => version.split(',').join(' '));
return versions;
}
function run() {
Expand Down Expand Up @@ -70019,7 +70018,7 @@ function getVersionInputFromTomlFile(versionFile) {
versions.push(version);
}
core.info(`Extracted ${versions} from ${versionFile}`);
return versions;
return Array.from(versions, version => version.split(',').join(' '));
}
exports.getVersionInputFromTomlFile = getVersionInputFromTomlFile;
/**
Expand Down
1 change: 0 additions & 1 deletion src/setup-python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ function resolveVersionInput() {
}
}

versions = Array.from(versions, version => version.split(',').join(' '));
return versions;
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export function getVersionInputFromTomlFile(versionFile: string): string[] {
}

core.info(`Extracted ${versions} from ${versionFile}`);
return versions;
return Array.from(versions, version => version.split(',').join(' '));
}

/**
Expand Down

0 comments on commit 39c1ae5

Please sign in to comment.