-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
The lychee exit status doesn't seem to be be propagated correctly through the action (by default) #71
Comments
Reading through the docs, seems this is by design, but IMO it's not a good default to not fail. |
Sounds like you found https://github.com/lycheeverse/lychee-action#alternative-approach already. But just in general, the thought process was that lychee was used as a step within a bigger "linting" pipeline and we didn't want to fail the entire pipeline because of a broken link. Now the question is if broken links are critical for the success of an entire action run. |
@mre thanks for the explanation. From my POV, the GH action is basically " This is somewhat outlined in the Principle of least astonishment where things should happen how most users expect it to happen. A CI job not failing when the underlying tool fails is not following that.
I'd argue that making it not fail is as simple as adding Again, the GH action should be "convenience around the tool" and should ideally by default behave exactly like the tool. Any additional features the action provides should be strictly opt-in for users who want more. |
I agree. If there are no objections I'm all for changing it. |
* Add link checking for markdown in CI Fixes #2139 * Require HTTPS * Update Lychee action * Make flow fail on error Per: lycheeverse/lychee-action#71 * Update lychee action to 1.8.0 * Add .lycheeignore
This is fixed in |
I have the action currently setup like this:
It gives me this output:
But the action passed? Seems the exit code from any of the commands didn't get propagated correctly.
The text was updated successfully, but these errors were encountered: