Moved webhook example to dedicated folder
This commit is contained in:
14
examples/webhook.qbit-ci.yaml
Normal file
14
examples/webhook.qbit-ci.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
name: test
|
||||
type: pipeline
|
||||
steps:
|
||||
- name: "Notify completed uncategorized torrents"
|
||||
commands:
|
||||
- >
|
||||
curl
|
||||
-H "Content-Type: application/json"
|
||||
-d '{"username": "cute anime girl", "content": "{{ torrent.name }} complete"}'
|
||||
<webhook_url>
|
||||
when:
|
||||
- '{{ changes.state == "uploading" }}'
|
||||
- '{{ torrent.category == "" }}'
|
Reference in New Issue
Block a user