30 lines
801 B
YAML
30 lines
801 B
YAML
- id: on-change
|
|
execute-command: /usr/local/bin/python3
|
|
command-working-directory: /etc/webhook/scripts
|
|
include-command-output-in-response: true
|
|
pass-arguments-to-command:
|
|
- source: string
|
|
name: "/etc/webhook/scripts/on-change.py"
|
|
- source: payload
|
|
name: user
|
|
- source: payload
|
|
name: path
|
|
- source: payload
|
|
name: request
|
|
trigger-rule:
|
|
match:
|
|
type: value
|
|
value: RUCVDCATrwtYlCT680FSW4IT1PrvkLB9
|
|
parameter:
|
|
source: header
|
|
name: X-Secret
|
|
- id: rescan
|
|
execute-command: /usr/local/bin/python3
|
|
command-working-directory: /etc/webhook/scripts
|
|
include-command-output-in-response: true
|
|
pass-arguments-to-command:
|
|
- source: string
|
|
name: "/etc/webhook/scripts/rescan.py"
|
|
- source: url
|
|
name: user
|