3
0
Fork 0
mirror of https://gitea.com/actions/setup-python.git synced 2024-11-26 12:09:35 +01:00

Fix naming

This commit is contained in:
IvanZosimov 2022-06-30 14:41:09 +02:00
parent e29a7c89f6
commit 56f6060254

View file

@ -39,15 +39,15 @@ function resolveVersionInput(): string {
if (versionFile) { if (versionFile) {
const defaultVersionFile = '.python-version'; const defaultVersionFile = '.python-version';
const VersionFileExists = fs.existsSync(versionFile); const versionFileExists = fs.existsSync(versionFile);
const defaultVersionFileExists = fs.existsSync(defaultVersionFile); const defaultVersionFileExists = fs.existsSync(defaultVersionFile);
if (!VersionFileExists && !defaultVersionFileExists) { if (!versionFileExists && !defaultVersionFileExists) {
throw new Error( throw new Error(
`The specified python version file at: ${versionFile} does not exist and default ${defaultVersionFile} file isn't found` `The specified python version file at: ${versionFile} does not exist and default ${defaultVersionFile} file isn't found`
); );
} }
if (VersionFileExists) { if (versionFileExists) {
version = fs.readFileSync(versionFile, 'utf8'); version = fs.readFileSync(versionFile, 'utf8');
core.info(`Resolved ${versionFile} as ${version}`); core.info(`Resolved ${versionFile} as ${version}`);
} else { } else {