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')}`);