From 00bb9e17e41475dd444d6e7a5121279d3a10cb67 Mon Sep 17 00:00:00 2001 From: R Gibim <9031589+Drowze@users.noreply.github.com> Date: Thu, 21 Sep 2023 12:49:17 -0300 Subject: [PATCH] Do not raise misleading warning When the input `input_files` is not defined, the `config.input_files` will default to an empty array, which always evaluate to true - that was triggering a warning like "hey man, the value you inputted on `input_files` didn't yield any files", which is logically wrong if `input_files` isn't explicitly defined. --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index e749b21df..19d31864f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -60,7 +60,7 @@ async function run() { }); //); const rel = await release(config, new GitHubReleaser(gh)); - if (config.input_files) { + if (config.input_files && config.input_files.length > 0) { const files = paths(config.input_files); if (files.length == 0) { console.warn(`🤔 ${config.input_files} not include valid file.`);