-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhook.yaml
62 lines (62 loc) · 1.84 KB
/
hook.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
- id: debug
execute-command: "{{BASE_DIR}}/hooks/debug.sh"
command-working-directory: "{{BASE_DIR}}/hooks"
include-command-output-in-response: true
incoming-payload-content-type: "application/json"
include-command-output-in-response-on-error: true
pass-arguments-to-command:
- source: entire-query
- source: entire-headers
- source: entire-payload
- id: exec
execute-command: "{{BASE_DIR}}/hooks/exec.sh"
command-working-directory: "{{BASE_DIR}}/hooks"
include-command-output-in-response: true
incoming-payload-content-type: "application/json"
include-command-output-in-response-on-error: true
pass-arguments-to-command:
- source: payload
name: "command"
trigger-rule:
match:
type: value
value: {{TOKEN}}
parameter:
source: url
name: token
- id: wg
execute-command: "{{BASE_DIR}}/hooks/wg.sh"
command-working-directory: "{{BASE_DIR}}/hooks"
include-command-output-in-response: true
response-message: "I got the payload!"
incoming-payload-content-type: "application/json"
include-command-output-in-response-on-error: true
pass-arguments-to-command:
- source: url
name: action
trigger-rule:
match:
type: value
value: {{TOKEN}}
parameter:
source: url
name: token
- id: clone_repo
execute-command: "{{BASE_DIR}}/hooks/clone_repo.sh"
command-working-directory: "{{BASE_DIR}}/hooks"
include-command-output-in-response: true
response-message: "I got the payload!"
incoming-payload-content-type: "application/json"
include-command-output-in-response-on-error: true
pass-arguments-to-command:
- source: payload
name: payload.repo_url
- source: payload
name: payload.branch_name
trigger-rule:
match:
type: value
value: {{TOKEN}}
parameter:
source: url
name: token