- Steps: Focused on querying data or triggering fetch-like operations from providers (e.g., querying databases, fetching logs, or retrieving information).
- Actions: Geared toward notifying or triggering outcomes, such as sending notifications, updating tickets, or invoking external services.
General Structure
Both steps and actions are defined using a similar schema:Steps
Used for querying or fetching data. Step uses the_query method of each provider.
Actions
Used for notifications or triggering effects. Action uses the_notify method of each provider.
Examples
Fetch data from a MySQL database
Retrieve logs from Datadog
Query Kubernetes for running pods
Send an email
Send a Slack Message
Create a ticket in ServiceNow
Combining Steps and Actions
A workflow typically combines steps (for querying data) with actions (for notifications or outcomes). Here’s few examples:Query and Notify
Alert and Incident Management
Error Handling and Retries
Both steps and actions support error handling to ensure workflows can recover from failures.Continue on error
By default, if a step or action fails the workflow stops immediately and reports a failure. Setcontinue_on_error: true on any step or action to swallow its failure and continue executing the remaining steps/actions — similar to continue-on-error in GitHub Actions.
When
continue_on_error: true is set, the step/action failure is logged as a warning but does not mark the overall workflow execution as failed.
