- 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>
23 lines
699 B
YAML
23 lines
699 B
YAML
name: detect example.com changes
|
|
description: |
|
|
Fetch example.com, fingerprint the response, and report whether it changed
|
|
since the previous run. Uses detect-url-changes with a transform that builds
|
|
a human-readable message into ctx.data.message.
|
|
scripts:
|
|
- script: detect-url-changes.js
|
|
config:
|
|
url: https://example.com/
|
|
outputVar: message
|
|
transform: |
|
|
data.hasChanges
|
|
? "example.com changed (fingerprint " & data.fingerprint & ")"
|
|
: "example.com unchanged since " & data.fingerprintAt
|
|
triggers:
|
|
- type: HTTP
|
|
method: POST
|
|
path: /detect-example
|
|
- type: cron
|
|
schedule: "* * * * *"
|
|
onConsecutiveFailures: 3
|
|
enabled: false
|