From 9862b0d6ac2947ca2a13732cac507006e5d94d75 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Thu, 21 Apr 2022 10:47:11 +0200 Subject: [PATCH] revert error --- dist/setup/index.js | 3 +++ src/setup-python.ts | 2 ++ 2 files changed, 5 insertions(+) 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')}`);