- Migrated legacy workflow files from `packages/server/workflows/` to `packages/server/data/workflows/` when the new store is empty. - Introduced new API endpoints to list and retrieve example workflows. - Added a dialog component for selecting example workflows when creating new workflows. - Updated workflow paths and configurations to reflect the new structure. - Enhanced the README and AGENTS.md documentation to clarify workflow management and usage. Co-authored-by: Nasyarobby Putra <nasyarobby@gmail.com>
28 lines
733 B
YAML
28 lines
733 B
YAML
name: Comic - monkeyuser to ntfy
|
|
description: |
|
|
Scrape the latest MonkeyUser comic and send it to ntfy (requires $VAR_ntfy_channel).
|
|
scripts:
|
|
- script: fetch-html.js
|
|
config:
|
|
url: https://www.monkeyuser.com/
|
|
outputVar: comic
|
|
selector: .comic img
|
|
jsonata: |
|
|
{"url": "https://www.monkeyuser.com" & [attributes.src][0], "title": [attributes.title][0]}
|
|
- script: jsonata.js
|
|
config:
|
|
expression: |
|
|
{
|
|
"title": data.comic.title,
|
|
"message": data.comic.title,
|
|
"attach": data.comic.url
|
|
}
|
|
- script: fetch-binary.js
|
|
- script: ntfy.js
|
|
config:
|
|
url: $VAR_ntfy_channel
|
|
triggers:
|
|
- type: HTTP
|
|
method: POST
|
|
path: /comic-monkeyuser
|