Skip to content

Commit

Permalink
docs: clarify Skipped and Omitted in enhanced depends (#13087)
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Dain <oliver@dains.org>
  • Loading branch information
oliverdain committed May 28, 2024
1 parent f480eb9 commit f492ea3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/enhanced-depends-logic.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ available task results is as follows:
| `.Omitted` | Task Omitted | Task was omitted |
| `.Daemoned` | Task is Daemoned and is not Pending | |

For convenience, if an omitted task result is equivalent to `(task.Succeeded || task.Skipped || task.Daemoned)`.
A tasks is considered `Skipped` if its `when` condition evaluates to false. On the other hand, if a task doesn't run
because its `depends` evaluated to false it is `Omitted`.

For convenience, an omitted task result is equivalent to `(task.Succeeded || task.Skipped || task.Daemoned)`.

For example:

Expand Down

0 comments on commit f492ea3

Please sign in to comment.