mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-10 10:44:19 +00:00
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.
This commit is contained in:
parent
c9b46fe7aa
commit
00bb9e17e4
1 changed files with 1 additions and 1 deletions
|
@ -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.`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue