Skip to content

Commit 82eddc4

Browse files
author
IvanZosimov
committed
Add warning in case the versionFile isn't found
1 parent d97b6ed commit 82eddc4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

dist/setup/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -65275,6 +65275,7 @@ function resolveVersionInput() {
6527565275
throw new Error(`The specified python version file at: ${versionFile} does not exist.`);
6527665276
}
6527765277
if (fs_1.default.existsSync(defaultVersionFile)) {
65278+
core.warning(`The specified python version file at: ${versionFile} does not exist. Attempting to find ${defaultVersionFile} file.`);
6527865279
versionFile = defaultVersionFile;
6527965280
}
6528065281
else {

src/setup-python.ts

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ function resolveVersionInput(): string {
4747
}
4848

4949
if (fs.existsSync(defaultVersionFile)) {
50+
core.warning(
51+
`The specified python version file at: ${versionFile} does not exist. Attempting to find ${defaultVersionFile} file.`
52+
);
5053
versionFile = defaultVersionFile;
5154
} else {
5255
throw new Error(

0 commit comments

Comments
 (0)