- Updated package manager to pnpm@11.22.0 in package.json. - Removed unused dependencies and scripts from package.json and pnpm-lock.yaml. - Cleaned up fs-store.js and other files by removing commented-out code and unused imports. - Updated workflow configurations to use environment variables for URLs.
26 lines
618 B
YAML
26 lines
618 B
YAML
name: Comic - monkeyuser to ntfy
|
|
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: /new
|