- Introduced a new script for fetching RSS feeds, allowing workflows to process and transform feed data using JSONata. - Updated workflow configuration to include a new RSS feed script, enhancing the capabilities of existing workflows. - Enhanced the workflow management API to support enabling and disabling workflows dynamically. - Improved UI components to reflect the new workflow features, including enabling/disabling workflows and displaying their statuses. - Added support for wildcard filtering in workflow queries, improving the flexibility of workflow management.
26 lines
639 B
YAML
26 lines
639 B
YAML
name: RSS - selfh.st first item to ntfy
|
|
scripts:
|
|
- script: fetch-rss-feed.js
|
|
config:
|
|
url: "https://selfh.st/rss/"
|
|
outputVar: item
|
|
jsonata: items[0]
|
|
- script: jsonata.js
|
|
config:
|
|
expression: |
|
|
{
|
|
"data": {
|
|
"title": item.title,
|
|
"message": item.contentSnippet & "\n" & item.link,
|
|
"attach": item.mediaContent.url ? item.mediaContent.url : (item.mediaContent.$ ? item.mediaContent.$.url : undefined)
|
|
}
|
|
}
|
|
- script: ntfy.js
|
|
config:
|
|
url: https://ntfy.sh/scrunner
|
|
|
|
triggers:
|
|
- type: HTTP
|
|
method: POST
|
|
path: /selfhst-rss
|