diff --git a/dist/setup/index.js b/dist/setup/index.js index ef8220c0..5876e780 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -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]; } diff --git a/src/utils.ts b/src/utils.ts index 5f000c13..eba5b75f 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -251,7 +251,7 @@ export function getVersionInputFromTomlFile(versionFile: string): string[] { */ export function getVersionInputFromPlainFile(versionFile: string): string[] { core.debug(`Trying to resolve version form ${versionFile}`); - const version = fs.readFileSync(versionFile, 'utf8'); + const version = fs.readFileSync(versionFile, 'utf8').trim(); core.info(`Resolved ${versionFile} as ${version}`); return [version]; }