-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Correct code snippet in README #135
Conversation
Weird, I thought we fixed that for good in #102. 🤔 |
TL;DR:
It's an expression function, specifically for this kinda of handling. Expand for verbose detailshttps://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-status-check-functions
The linked docs have an example for "failure with conditions" that shows that you can check if a specific step failed: if: ${{ failure() && steps.lychee-action.conclusion == 'failure' }} Alternatively one can use
Which AFAIK could be used with the
Lines 44 to 51 in 76ab977
That is... by default always exiting the action with the status code from the To allow failure for the step and continue the job, users opt-in by adding Likewise, instead of
|
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
I have since realized that the I'm also on the fence about In this scenario, the outcome you want is to create an issue when Whereas with a lint task on a PR activity, you're interested in the check-suite status. A failure for a job there is more meaningful, and a simple way of showing what tasks failed. |
If someone finds the time, I'd be thankful for a review of #145, which is another attempt to fix this issue. |
I will review later today. I should be able to spare some more time later this week to make some contributions too hopefully. |
Gonna close this as fixed. Thanks to you both for your contributions. 😊 Please don't hesitate to open more issues or pull requests. |
Hello!
I noticed that after copy/pasting the GitHub action snippet, this
if
check does not work.I've replaced it with
if: failure()
which seems to actually work now. Please feel free to make any edits needed to this pull request!