/
branch-failure.yaml
69 lines (62 loc) · 1.28 KB
/
branch-failure.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '1.0'
description: Begins wan link troubleshooting workflow
tasks:
t1:
action: core.noop
next:
- when: <% succeeded() %>
do:
- t2
- t3
t2:
action: core.local
input:
cmd: asdf
t3:
action: core.local
input:
cmd: asdf
next:
- when: <% succeeded() %>
do:
- user_prompt_finish
- t2
- when: <% failed() %>
do:
- user_prompt_retry
user_prompt_finish:
action: core.ask
input:
ttl: 0
schema:
type: object
properties:
finish:
type: boolean
description: "select to finish"
required: True
retry:
type: boolean
description: "select to retry"
required: True
next:
- when: <% result().response.finish = true %>
do: finish
- when: <% result().response.retry = true %>
do: t3
user_prompt_retry:
action: core.ask
input:
ttl: 0
schema:
type: object
properties:
retry:
type: boolean
description: "---"
required: True
next:
- when: <% result().response.retry = true%>
do: t3
finish:
action: core.noop