diff --git a/dist/setup/index.js b/dist/setup/index.js index c51a5f77..b6c873b8 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -6112,6 +6112,9 @@ function run() { yield 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')}`); } diff --git a/src/setup-python.ts b/src/setup-python.ts index 62c76dba..3340a86e 100644 --- a/src/setup-python.ts +++ b/src/setup-python.ts @@ -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')}`);