Skip to content

Commit fd8f0a9

Browse files
Merge pull request #396 from akv-platform/v-sedoli/issue-241
Add warning if python version set to empty value
2 parents ae11205 + 8f73c14 commit fd8f0a9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

dist/setup/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -6112,6 +6112,9 @@ function run() {
61126112
yield cacheDependencies(cache, pythonVersion);
61136113
}
61146114
}
6115+
else {
6116+
core.warning('The `python-version` input is not set. The version of Python currently in `PATH` will be used.');
6117+
}
61156118
const matchersPath = path.join(__dirname, '../..', '.github');
61166119
core.info(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);
61176120
}

src/setup-python.ts

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ async function run() {
5353
if (cache && isCacheFeatureAvailable()) {
5454
await cacheDependencies(cache, pythonVersion);
5555
}
56+
} else {
57+
core.warning(
58+
'The `python-version` input is not set. The version of Python currently in `PATH` will be used.'
59+
);
5660
}
5761
const matchersPath = path.join(__dirname, '../..', '.github');
5862
core.info(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);

0 commit comments

Comments
 (0)