mirror of
https://github.com/actions/setup-python.git
synced 2024-11-25 10:26:54 +01:00
Add warning if python version set to empty value
This commit is contained in:
parent
c36dc43e7b
commit
ac4e858835
1 changed files with 4 additions and 0 deletions
|
@ -53,6 +53,10 @@ async function run() {
|
||||||
if (cache && isCacheFeatureAvailable()) {
|
if (cache && isCacheFeatureAvailable()) {
|
||||||
await cacheDependencies(cache, pythonVersion);
|
await cacheDependencies(cache, pythonVersion);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
core.warning(
|
||||||
|
'python-version is empty, the OS native python will be used'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
const matchersPath = path.join(__dirname, '../..', '.github');
|
const matchersPath = path.join(__dirname, '../..', '.github');
|
||||||
core.info(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);
|
core.info(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);
|
||||||
|
|
Loading…
Reference in a new issue