-
Notifications
You must be signed in to change notification settings - Fork 60.2k
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
GHA job status check functions: wrong description of success() #5756
Comments
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
This comment has been minimized.
This comment has been minimized.
@tobinus Thank so much for opening an issue and including a sample workflow to explain what you're seeing! I'll get this triaged for someone to take a look 👀 |
This appears to be a duplicate of #4821. As was stated in that issue:
Since that is still the case, I'm going to close this issue as a duplicate. Please let me know if I've misunderstood anything. Thanks for reaching out and helping contribute to the GitHub Docs! |
I disagree for three reasons:
|
What article on docs.github.com is affected?
Context and expression syntax for GitHub Actions, under "Job status check functions".
What part(s) of the article would you like to see updated?
The documentation of
success()
reads:However, if your job
needs
another job which is skipped,success()
returnsfalse
, even though none of the previous steps have failed or been canceled (they just succeded or were skipped).This caused me a great deal of confusion, as my job kept being skipped even though I had set
if: success()
, which I thought would returntrue
when none of the previous steps have failed or been canceled.The documentation should be updated so that it describes
success()
accurately. A suggestion:Or if we still wish to explain what we mean by "run successfully":
Additional information
To understand how
success()
actually behaves, I created a minimal workflow:The job "runs-upon-success" was skipped, even though none of the previous steps have failed or been canceled.
The text was updated successfully, but these errors were encountered: