mirror of
https://github.com/actions/setup-python.git
synced 2024-11-10 05:41:06 +07:00
Trim python version to get rid of '\n' (#628)
This commit is contained in:
parent
65d7f2d534
commit
3467d92d48
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@ -70160,7 +70160,7 @@ exports.getVersionInputFromTomlFile = getVersionInputFromTomlFile;
|
|||||||
*/
|
*/
|
||||||
function getVersionInputFromPlainFile(versionFile) {
|
function getVersionInputFromPlainFile(versionFile) {
|
||||||
core.debug(`Trying to resolve version form ${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}`);
|
core.info(`Resolved ${versionFile} as ${version}`);
|
||||||
return [version];
|
return [version];
|
||||||
}
|
}
|
||||||
|
@ -251,7 +251,7 @@ export function getVersionInputFromTomlFile(versionFile: string): string[] {
|
|||||||
*/
|
*/
|
||||||
export function getVersionInputFromPlainFile(versionFile: string): string[] {
|
export function getVersionInputFromPlainFile(versionFile: string): string[] {
|
||||||
core.debug(`Trying to resolve version form ${versionFile}`);
|
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}`);
|
core.info(`Resolved ${versionFile} as ${version}`);
|
||||||
return [version];
|
return [version];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user