success() returns false if dependent jobs are skipped #45058
Replies: 8 comments 4 replies
-
I created a repository to reproduce this issue. https://github.com/suzuki-shunsuke/bug-reproduction-github-actions-success |
Beta Was this translation helpful? Give feedback.
-
I created a GitHub Support ticket and got a reply today.
I'm waiting for further reply from support. |
Beta Was this translation helpful? Give feedback.
-
I got a reply from support.
|
Beta Was this translation helpful? Give feedback.
-
I'm having similar issues. A job with if-condition
And the repository: https://github.com/lyuhau/github-actions-needs-if-bug |
Beta Was this translation helpful? Give feedback.
-
Please change this bonkers behavior |
Beta Was this translation helpful? Give feedback.
-
Please fix this, it doesn't make sense at all. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Since I struggled with some weird behavior (and not only with the flowchart LR;
A[Job A]-->B1[Job B1];
A-->B2[Job B2];
B1-->D[" "];
B2-->D;
D-->E["always()"];
D-->F["success()"];
D-->G["failure()"];
D-->H["cancelled()"];
I hope that could help people dig into weird behaviors and make GitHub fixing/improving those weird condition behaviors (non-sense from a developer's pov) |
Beta Was this translation helpful? Give feedback.
-
Here's my way to check if all jobs in the
I must say, it's very ugly. Instead of for the reference Felixoid/actions-experiments#9 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Bug
Body
Please see the following workflow definition and result.
The job
zoo
depended onfoo
andbar
andfoo
succeeded andbar
was skipped, thenzoo
was skipped.But I think
zoo
should have been run because none of the dependent jobs failed or was canceled.https://docs.github.com/en/actions/learn-github-actions/expressions#success
https://docs.github.com/en/actions/learn-github-actions/contexts#needs-context
skipped
is different fromcancelled
.I changed
if
fromsuccess()
to! failure()
, then it worked as expected.Beta Was this translation helpful? Give feedback.
All reactions