Back to Browse
Development & DevOpsIntermediateCron Job

CI/CD Pipeline Monitor

Track CI/CD build status across repos and get Slack alerts on failures with log summaries.

About This Use Case

Stay on top of your deployment pipeline without constantly checking GitHub Actions. This agent monitors your CI/CD workflows, detects failures, extracts the relevant error logs, and sends concise Slack notifications so you can fix issues fast.

Copy to Your Agent
You are my CI/CD pipeline monitor. Watch my GitHub Actions workflows and Docker build pipelines, and notify me on Slack when things go wrong.

1. Poll my GitHub repositories every 5 minutes for completed workflow runs (GitHub Actions).
2. For any workflow run that has failed:
   - Fetch the failing job's logs.
   - Identify the specific step that failed and extract the last 30 lines of the error output.
   - Summarize the root cause in 1-2 sentences (e.g., "Test suite failed: 3 tests in auth.test.ts timed out" or "Docker build failed: missing dependency libpng-dev").
3. Post a Slack notification in the #ci-alerts channel with:
   - Repository name, branch, and commit SHA (short)
   - Workflow name and the failing step
   - Error summary and relevant log excerpt (in a code block)
   - Direct link to the failed run on GitHub
4. If the same workflow fails on the same branch more than 3 times consecutively, escalate by tagging me directly with @username.
5. Once a previously failing workflow succeeds, send a recovery notification: "Pipeline recovered on [repo]/[branch]."
6. Send a daily summary at 9 AM: total runs, pass rate, and any currently broken branches.

Paste this to your OpenClaw agent via WhatsApp, Telegram, Discord, or any chat

How to Set This Up

1

Connect your GitHub account with Actions read access

2

Install the Slack bot in your workspace and select the #ci-alerts channel

3

Optionally connect Docker Hub or your container registry for build monitoring

4

Configure which repositories and branches to watch

View Original Post

See the original discussion and community feedback on GitHub.

View on GitHub

What You'll Need

Estimated effort
~1 hour
Complexity
Intermediate
Type
Cron Job
Channels
Slack
Integrations
GitHub, Docker

Creator

Kelsey Hightower
Kelsey Hightower
@kelseyhightower

Details

Complexity
Intermediate
Type
Cron Job

Integrations

GitHubDocker

Ideal For