-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinput.fp
64 lines (47 loc) · 1.24 KB
/
input.fp
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
trigger "schedule" "my_step" {
enabled = false
schedule = "daily"
pipeline = pipeline.my_step
}
pipeline "my_step" {
step "input" "my_step" {
type = "button"
prompt = "Do you want to approve?"
option "Approve" {}
option "Deny" {}
notifier = notifier.default
}
step "transform" "do_the_thing" {
depends_on = [step.input.my_step]
value = step.input.my_step.value
}
output "val" {
value = step.transform.do_the_thing
}
}
pipeline "parent_with_no_input_step" {
step "pipeline" "nested" {
pipeline = pipeline.input_step_child_with_no_sleep
}
step "pipeline" "nested_two" {
pipeline = pipeline.input_step_child_with_no_sleep
}
output "val" {
value = step.pipeline.nested.output.val
}
output "val_two" {
value = step.pipeline.nested_two.output.val
}
}
pipeline "input_step_child_with_no_sleep" {
step "input" "my_step" {
type = "button"
prompt = "input_step_child_with_no_sleep: Do you want to approve?"
option "Approve" {}
option "Deny" {}
notifier = notifier.default
}
output "val" {
value = step.input.my_step.value
}
}