Moved webhook example to dedicated folder

This commit is contained in:
2022-10-03 20:55:18 +02:00
parent 03fd9ae389
commit 1658e68339

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