-
-
Notifications
You must be signed in to change notification settings - Fork 763
Open
Labels
state: needs triageWaiting to be triaged by a maintainer.Waiting to be triaged by a maintainer.
Description
Description
Currently, a task will fail if any of the preconditions fails. It will be very helpful to allow a task to skip conditionally without failing.
Proposal:
tasks:
my-task:
preconditions:
- test $a = 1
- sh: test $b = 2
action: skip
msg: "Skip!"
- sh: test $c = 3
action: fail
msg: "Fail!"
cmds:
- echo Hello World- if
$a != 1, the task will fail by default. - if
$b != 2, the task will skip with a warning "Skip!". - if
$c != 3, the task will fail with message "Fail!". - if both
$b != 2and$c != 3, the task will skip instead of failing.
Metadata
Metadata
Assignees
Labels
state: needs triageWaiting to be triaged by a maintainer.Waiting to be triaged by a maintainer.