Conditional task #3323
Unanswered
loranger
asked this question in
Help needed
Replies: 1 comment 1 reply
-
Easiest solution: task('notify', function(){
if (!input()->hasOption('silent')) {
invoke('slack:notify:success');
}
}); Basically when() can be implemented exactly like this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Do you know if there is a way to trigger a task conditionally such as this ?
Beta Was this translation helpful? Give feedback.
All reactions