-
Notifications
You must be signed in to change notification settings - Fork 61.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
Update failure with additional conditions #18270
Conversation
Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
Automatically generated comment ℹ️This comment is automatically generated and will be overwritten every time changes are committed to this branch. The table contains an overview of files in the Content directory changesYou may find it useful to copy this table into the pull request summary. There you can edit it to share links to important articles or changes and to give a high-level overview of how the changes in your pull request support the overall goals of the pull request.
|
👋 @alexbrazier Thanks for opening this PR!
However, I have reproduced what you're seeing for I'll see if I can get an engineer or product person to have a look at this, as it might be a bug. |
Thanks for opening a pull request! We've triaged this issue for technical review by a subject matter expert 👀 |
👋 @alexbrazier, I've confirmed that the behavior is because there is an implicit So, your fix of including |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues ⚡ |
Hi @lucascosti, that makes sense - I had assumed there was either a bug somewhere or an issue with the docs. Thanks for looking into it and merging the changes! |
Why:
Closes #18269
What's being changed:
The docs in the "Evaluate Status Explicitly" section suggest equivalents of
failure()
but neither work. I've updated the docs to remove them and also added a practical example of only running a failure jobs when a specific job fails.Example action with previous broken code and updated working code
From the above testing
failure()
is always required if you want the job to run on a failure regardless of other expressions that might match.Check off the following:
Writer impact (This section is for GitHub staff members only):