From d97b6edda3da1f628f85b7105cb690790e86c149 Mon Sep 17 00:00:00 2001 From: IvanZosimov Date: Thu, 30 Jun 2022 16:25:46 +0200 Subject: [PATCH] Fix typos --- dist/setup/index.js | 6 +++--- src/setup-python.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 5ab9c89..43d4cfb 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -65263,7 +65263,7 @@ function resolveVersionInput() { let version = core.getInput('python-version'); let versionFile = core.getInput('python-version-file'); if (version && versionFile) { - core.warning('Both python-version and python-version-file inputs are specified, only python-version will be used'); + core.warning('Both python-version and python-version-file inputs are specified, only python-version will be used.'); } if (version) { return version; @@ -65278,14 +65278,14 @@ function resolveVersionInput() { versionFile = defaultVersionFile; } else { - throw new Error(`The specified python version file at: ${versionFile} does not exist and default ${defaultVersionFile} file isn't found`); + throw new Error(`The specified python version file at: ${versionFile} does not exist and default ${defaultVersionFile} file isn't found.`); } } version = fs_1.default.readFileSync(versionFile, 'utf8'); core.info(`Resolved ${versionFile} as ${version}`); return version; } - core.warning("Neither 'python-version' nor 'python-version-file' inputs were supplied. "); + core.warning("Neither 'python-version' nor 'python-version-file' inputs were supplied."); return version; } function run() { diff --git a/src/setup-python.ts b/src/setup-python.ts index ec1fcd8..fea50e1 100644 --- a/src/setup-python.ts +++ b/src/setup-python.ts @@ -28,7 +28,7 @@ function resolveVersionInput(): string { if (version && versionFile) { core.warning( - 'Both python-version and python-version-file inputs are specified, only python-version will be used' + 'Both python-version and python-version-file inputs are specified, only python-version will be used.' ); } @@ -50,7 +50,7 @@ function resolveVersionInput(): string { versionFile = defaultVersionFile; } else { 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.` ); } } @@ -62,7 +62,7 @@ function resolveVersionInput(): string { } core.warning( - "Neither 'python-version' nor 'python-version-file' inputs were supplied. " + "Neither 'python-version' nor 'python-version-file' inputs were supplied." ); return version;