-
-
Save alexhayes/c6312965a4133bebe54d69c2f668e465 to your computer and use it in GitHub Desktop.
Execute b if a is successful, otherwise execute c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a: | |
cmd.run: | |
- name: exit 0 | |
b: | |
cmd.run: | |
- name: echo "Success" | |
- require: | |
- cmd: a | |
c: | |
cmd.run: | |
- name: echo "Failure" | |
- onfail: | |
- cmd: a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment