github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/tests/functests/c0139.yml (about) 1 doc_meta: | 2 folder: test-debug 3 title: fail 4 head: | 5 This shows how to fail a task in condition 6 7 sections: 8 - title: Demo 9 log: yes 10 11 tasks: 12 - name: task 13 task: 14 - func: cmd 15 do: 16 - name: print 17 cmd: "step1" 18 19 - func: cmd 20 vars: 21 person: tom 22 do: 23 - name: fail 24 if: '{{eq .person "tom-s-name"}}' 25 26 - func: cmd 27 do: 28 - name: print 29 cmdy: "step2"