From 6733fc44ecfb2ab941c4b659afcfb87d2836391d Mon Sep 17 00:00:00 2001 From: IvanZosimov Date: Thu, 30 Jun 2022 13:44:10 +0200 Subject: [PATCH] Fix typo --- dist/setup/index.js | 4 ++-- src/setup-python.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index e7cfc7a..9ca5fb7 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -64483,8 +64483,8 @@ function resolveVersionInput() { core.info(`Resolved ${versionFile} as ${version}`); } else { - version = fs_1.default.readFileSync('.python-version', 'utf8'); - core.info(`Resolved ${'.python-version'} as ${version}`); + version = fs_1.default.readFileSync(defaultVersionFile, 'utf8'); + core.info(`Resolved ${defaultVersionFile} as ${version}`); } return version; } diff --git a/src/setup-python.ts b/src/setup-python.ts index 97efe53..58ebd8d 100644 --- a/src/setup-python.ts +++ b/src/setup-python.ts @@ -51,8 +51,8 @@ function resolveVersionInput(): string { version = fs.readFileSync(versionFile, 'utf8'); core.info(`Resolved ${versionFile} as ${version}`); } else { - version = fs.readFileSync('.python-version', 'utf8'); - core.info(`Resolved ${'.python-version'} as ${version}`); + version = fs.readFileSync(defaultVersionFile, 'utf8'); + core.info(`Resolved ${defaultVersionFile} as ${version}`); } return version;