-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Action warnings cause an error to be returned #354
Comments
This issue could be related to #352, however it was pointed out that may be due to mismatch of the caching logic and npm version. |
Hello @0xdeafcafe. Thank you for your report. It looks the issue comes from these lines, because warning writes to the error output, that is why error is not empty, but exit code is zero. I think we'll fix it from our side with something like this:
|
Agree that a warning shouldn't cause the workflow to error, but, as a stop-gap, you can silence the warning by adding |
Hello everyone. We released a new version to resolve a bug to fail action on the warning. |
Description:
A warnings returned while the action is run will cause the workflow to error.
Action version:
v2.4.1
Platform:
Runner type:
Tools version:
Node 16.13.0 using yarn
Repro steps:
Workflow.yml
The repository is also available here.
Expected behaviour:
Node gets setup correctly, and the rest of the workflow continues.
Actual behavior:
It fails due to a warning about the license field missing in the
package.json
. The exact same config seems to be working fine in this repo however, which is pretty bizarre.The text was updated successfully, but these errors were encountered: