1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2024-12-22 20:32:31 +00:00

Merge pull request #396 from akv-platform/v-sedoli/issue-241

Add warning if python version set to empty value
This commit is contained in:
Marko Zivic 2022-05-04 15:21:43 +02:00 committed by GitHub
commit fd8f0a9fb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

3
dist/setup/index.js vendored
View file

@ -6112,6 +6112,9 @@ function run() {
yield cacheDependencies(cache, pythonVersion);
}
}
else {
core.warning('The `python-version` input is not set. The version of Python currently in `PATH` will be used.');
}
const matchersPath = path.join(__dirname, '../..', '.github');
core.info(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);
}

View file

@ -53,6 +53,10 @@ async function run() {
if (cache && isCacheFeatureAvailable()) {
await cacheDependencies(cache, pythonVersion);
}
} else {
core.warning(
'The `python-version` input is not set. The version of Python currently in `PATH` will be used.'
);
}
const matchersPath = path.join(__dirname, '../..', '.github');
core.info(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);