github.onDeploymentErrored emits deployment statuses with state: "error".
automations/github-deployment-errored.automation.ts
onDeploymentFailed when infrastructure errors and deployment failures need different handling. Requires Deployments read permission.