Email when a run fails
When a workflow run fails, the team's owners get one email for the run, not one per job. It goes out once the run's jobs on Groundbox have all ended (about two minutes after the last one, so jobs that start late are included) and at least one of them failed or timed out. A run whose jobs were only cancelled sends nothing. The email names the repo, workflow, branch and commit, says which jobs failed ("2 of 9 jobs on Groundbox failed"), shows the last 20 lines of the failed step's log when the job ended in the last few minutes, and links to the failed job in the dashboard and to the run on GitHub.
By default only runs on the repo's default branch email. Choose Default branch only, All branches or Off under Settings, Notifications, Failed jobs, or:
groundbox ci failure-emails all-branches # default-branch, all-branches or off; no argument shows itThe API is GET /v1/ci/notifications (ci:read) and PUT /v1/ci/notifications with {"failed_runs": "default_branch" | "all_branches" | "off"} (ci:write, or an owner or admin signed in). The SDKs have get_ci_notifications and set_ci_failed_run_emails.
A repo sends at most one of these emails every 10 minutes. Runs that fail in between are not emailed one by one; the next email says how many there were. Unsubscribing from our emails stops these too. They cover GitHub Actions jobs for now.