- Implemented a migration process to move resources from the legacy owner "default" to the new default owner "local", ensuring no data loss during the transition.
- Updated configuration reference handling to replace legacy `$VAR_`, `$SECRET_`, and `$CONTEXT_` prefixes with mustache-style `{{ vars.name }}`, `{{ secrets.name }}`, and `{{ context.name }}`.
- Enhanced YAML configuration files and scripts to reflect the new mustache syntax, improving consistency across the application.
- Added tests to validate the migration process and ensure proper handling of legacy references.
- Updated documentation to guide users on the new configuration reference format.
28 lines
747 B
YAML
28 lines
747 B
YAML
name: Comic - monkeyuser to ntfy
|
|
description: |
|
|
Scrape the latest MonkeyUser comic and send it to ntfy (requires {{ vars.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: "{{ vars.ntfy_channel }}"
|
|
triggers:
|
|
- type: HTTP
|
|
method: POST
|
|
path: /comic-monkeyuser
|