From 82eddc4023a579965135122e83230730392b1064 Mon Sep 17 00:00:00 2001 From: IvanZosimov Date: Thu, 30 Jun 2022 16:34:29 +0200 Subject: [PATCH] Add warning in case the versionFile isn't found --- dist/setup/index.js | 1 + src/setup-python.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/dist/setup/index.js b/dist/setup/index.js index 43d4cfb..f439423 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -65275,6 +65275,7 @@ function resolveVersionInput() { throw new Error(`The specified python version file at: ${versionFile} does not exist.`); } if (fs_1.default.existsSync(defaultVersionFile)) { + core.warning(`The specified python version file at: ${versionFile} does not exist. Attempting to find ${defaultVersionFile} file.`); versionFile = defaultVersionFile; } else { diff --git a/src/setup-python.ts b/src/setup-python.ts index fea50e1..c4db766 100644 --- a/src/setup-python.ts +++ b/src/setup-python.ts @@ -47,6 +47,9 @@ function resolveVersionInput(): string { } if (fs.existsSync(defaultVersionFile)) { + core.warning( + `The specified python version file at: ${versionFile} does not exist. Attempting to find ${defaultVersionFile} file.` + ); versionFile = defaultVersionFile; } else { throw new Error(