Skip to content

Commit

Permalink
Trim python version when reading from file
Browse files Browse the repository at this point in the history
  • Loading branch information
FerranPares committed Mar 16, 2023
1 parent dfa76f8 commit 54c39f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup-python.ts
Expand Up @@ -52,7 +52,7 @@ function resolveVersionInput() {
);
versionFile = '.python-version';
if (fs.existsSync(versionFile)) {
const version = fs.readFileSync(versionFile, 'utf8');
const version = fs.readFileSync(versionFile, 'utf8').trim();
core.info(`Resolved ${versionFile} as ${version}`);
return [version];
}
Expand Down

0 comments on commit 54c39f4

Please sign in to comment.