8000 Trim python version when reading from file · actions/setup-python@54c39f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 54c39f4

Browse files
committed
Trim python version when reading from file
1 parent dfa76f8 commit 54c39f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/setup-python.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function resolveVersionInput() {
5252
);
5353
versionFile = '.python-version';
5454
if (fs.existsSync(versionFile)) {
55-
const version = fs.readFileSync(versionFile, 'utf8');
55+
const version = fs.readFileSync(versionFile, 'utf8').trim();
5656
core.info(`Resolved ${versionFile} as ${version}`);
5757
return [version];
5858
}

0 commit comments

Comments
 (0)
0