- Updated all instances of `triggerWorkflow` to `onFailureWorkflow` across the codebase to improve clarity and consistency in naming. - Adjusted related logic in workflow configurations and UI components to reflect the new naming convention. - Enhanced error messages and documentation to align with the updated terminology. This change aims to provide a clearer understanding of the workflow's failure handling mechanism.
23 lines
719 B
YAML
23 lines
719 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
|
|
onFailureWorkflow: dev-zte-sms
|