- Introduced a new dry-run endpoint for executing scripts without saving changes. - Implemented a dedicated ScriptDryRunPage for user interaction with dry-run functionality. - Enhanced ScriptsPage to support navigation to the dry-run feature. - Added LogViewer component for displaying logs during script execution. - Created ScriptEditPage for editing scripts with integrated dry-run capabilities. - Updated workflows to include new scripts for fetching and notifying data. - Improved overall user experience with better navigation and error handling.
23 lines
607 B
YAML
23 lines
607 B
YAML
name: Comic - monkeyuser to ntfy
|
|
scripts:
|
|
- script: fetch-html.js
|
|
config:
|
|
url: "https://www.monkeyuser.com/"
|
|
outputVar: "httpResponse"
|
|
selector: ".comic img"
|
|
jsonata: |
|
|
{"url": "https://www.monkeyuser.com" & [attributes.src][0], "title": [attributes.title][0]}
|
|
- script: jsonata.js
|
|
config:
|
|
expression: |
|
|
{"data": {"title": httpResponse.title, "message": httpResponse.title, "attach": httpResponse.url}}
|
|
- fetch-binary.js
|
|
- script: ntfy.js
|
|
config:
|
|
url: https://ntfy.sh/scrunner
|
|
|
|
triggers:
|
|
- type: HTTP
|
|
method: POST
|
|
path: /new
|