diff --git a/dist/setup/index.js b/dist/setup/index.js index e7cfc7a1..9ca5fb7c 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 97efe538..58ebd8d0 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;