-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
61 lines (55 loc) · 1.46 KB
/
config.yml
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
endpoints:
- name: test
secrets:
- test
rules:
- type: display
echo: yes
#destination: http://localhost:8081/webhook/hooks
arguments:
template: |
{
"test" : {{ multiply .test 10 }},
"nestedData" : {{ .nestedData.innerTest }},
"array": {{ index .array 0 }}
}
- name: hooks
secrets:
- hookSecret
sources:
- type: github
arguments:
secret: hookToken
- type: generic
arguments:
token: hookToken
rules:
- type: display
echo: yes
arguments:
template: |
{ "hook_executed": "{{ .test }}", "hook_secret": "{{ ._secrets.hookSecret }}" }
- name: Monzo2Ynab
secrets:
- ynabToken
- budgetID
sources:
- type: generic
arguments:
token: hookToken
rules:
- type: display
#destination: https://api.youneedabudget.com/v1/budgets/<ID>/transactions
echo: yes
headers:
token: "{{ ._secrets.ynabToken }}"
nonSecretToken: 12345
arguments:
template: |
{
"account_id": "{{ ._secrets.budgetID }}",
"date": "{{ .data.created }}",
"amount": {{ multiply .data.amount 10 }},
"memo": "{{ .data.category }} : {{ .data.description }}",
"payee_name": "{{ .data.merchant.name }}"
}