qbit-ci/examples/webhook.qbit-ci.yaml

15 lines
379 B
YAML

---
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 == "" }}'