1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2025-06-08 14:37:00 +09:00

Throw exe on empty python-version

This commit is contained in:
Sergey Dolin 2022-04-21 08:16:43 +05:00
parent 85a7430316
commit bcc31375e1
3 changed files with 31 additions and 56 deletions

View file

@ -53,6 +53,8 @@ async function run() {
if (cache && isCacheFeatureAvailable()) {
await cacheDependencies(cache, pythonVersion);
}
} else {
throw new Error('there\'s empty python-version input')
}
const matchersPath = path.join(__dirname, '../..', '.github');
core.info(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);