Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not raise misleading warning #389

Merged
merged 1 commit into from Mar 8, 2024
Merged

Conversation

Drowze
Copy link
Contributor

@Drowze Drowze commented Sep 21, 2023

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 misleading warning suggesting that the user did input something but the input didn't point to any file.

As a fix, simply check if the array is empty as well :)

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.
@Drowze
Copy link
Contributor Author

Drowze commented Nov 1, 2023

@softprops can we merge this? would fix the following warning ("not include valid file") always being thrown whenever input_files is not defined.
Screenshot 2023-11-01 at 14 29 11

@rpdelaney
Copy link
Contributor

rpdelaney commented Nov 28, 2023

Duplicate of Related to #384 ? :)

@softprops
Copy link
Owner

@Drowze this makes a lot of sense to me!

@softprops softprops merged commit e985949 into softprops:master Mar 8, 2024
@softprops
Copy link
Owner

this should be available in the new v2 tag

cgrindel-self-hosted-renovate bot added a commit to cgrindel/renovate-bot that referenced this pull request Mar 9, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[softprops/action-gh-release](https://togithub.com/softprops/action-gh-release)
| action | patch | `v2.0.0` -> `v2.0.1` |

---

### Release Notes

<details>
<summary>softprops/action-gh-release
(softprops/action-gh-release)</summary>

###
[`v2.0.1`](https://togithub.com/softprops/action-gh-release/releases/tag/v2.0.1)

[Compare
Source](https://togithub.com/softprops/action-gh-release/compare/v2.0.0...v2.0.1)

- Add support for make_latest property
[softprops/action-gh-release#304
via [@&#8203;samueljseay](https://togithub.com/samueljseay)
- Fail run if files setting contains invalid patterns
[softprops/action-gh-release#384
via [@&#8203;rpdelaney](https://togithub.com/rpdelaney)
- Add support for proxy env variables (don't use node-fetch)
[softprops/action-gh-release#386
via [@&#8203;timor-raiman](https://togithub.com/timor-raiman)
- Suppress confusing warning when input_files is empty
[softprops/action-gh-release#389
via [@&#8203;Drowze](https://togithub.com/Drowze)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDAuMCIsInVwZGF0ZWRJblZlciI6IjM2LjEwMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants