Skip to main content
automate.onDeploymentEvent covers the complete deployment lifecycle. Use a semantic trigger when only awaiting authorization, success, failure, or cancellation matters.
automations/watch-deployments.automation.ts

Configuration

Trigger data

Returns deployment, project, organization, previousStatus, status, transitionedAt, and failure. Deployment contains id, createdAt, and nullable completedAt. Project and organization each contain id and name. previousStatus is null for a newly created deployment. Otherwise, previousStatus and status use planning, awaiting_authorization, configuring, publishing, succeeded, failed, or cancelled. failure is normally null; a failed deployment includes its terminal error message. Automate.ax stores the event in the same transaction as the status transition. An action does not wake the automation that performed that action, but other subscribed automations still receive it.