Trim python version to get rid of '\n' (#628)

This commit is contained in:
Ferran Parés
2023-10-06 12:34:33 +02:00
committed by GitHub
parent 65d7f2d534
commit 3467d92d48
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js vendored
View File

@ -70160,7 +70160,7 @@ exports.getVersionInputFromTomlFile = getVersionInputFromTomlFile;
*/
function getVersionInputFromPlainFile(versionFile) {
core.debug(`Trying to resolve version form ${versionFile}`);
const version = fs_1.default.readFileSync(versionFile, 'utf8');
const version = fs_1.default.readFileSync(versionFile, 'utf8').trim();
core.info(`Resolved ${versionFile} as ${version}`);
return [version];
}