GitHub Actions Cost Tracker
Tracks GitHub Actions minutes and costs across your repos. Spots runaway workflows.
Template
Daily at 9am:
1. For each tracked repo, fetch workflow runs from the last 24 hours:
gh api repos/{owner}/{repo}/actions/runs --jq '.workflow_runs[] | {name, status, run_started_at, updated_at}'
2. Calculate minutes used per workflow:
- Duration = updated_at - run_started_at
- Multiply by runner cost rate (Linux: 1x, macOS: 10x, Windows: 2x)
3. Daily report:
- Total minutes used yesterday
- Top 5 workflows by cost
- Failed workflows (wasted minutes)
4. Alert if daily usage > 2x the 7-day average: "Actions spend spike: {minutes} min (avg: {avg} min)"
5. Weekly: cost breakdown by repo and workflow, trend vs last week
6. Monthly: projected vs actual spend, optimization suggestions for expensive workflowsSetup
- 1
Copy the HEARTBEAT.md content below into your OpenClaw workspace at `~/.openclaw/workspace/HEARTBEAT.md`.
- 2
Install the required skills: `clawhub install github`, `clawhub install message`.
- 3
Open your agent channel (Telegram or any connected channel) and send a message to confirm it's running.
- 4
Your agent will follow the schedule in HEARTBEAT.md automatically. Check back in 30 minutes to see it in action.
- 5
Customize the template: adjust timing, thresholds, and notification targets to fit your setup.
Tip: The template uses placeholder values like {your brand} or {repo}. Replace these with your actual values before saving.
Install commands
Save the template to your OpenClaw workspace, then install the required skills.
# 1. Save the template
cp <download> ~/.openclaw/workspace/HEARTBEAT.md
# 2. Install skills
clawhub install github
clawhub install messageVersion History
Framework
OpenclawFile type
Defines scheduled tasks. Runs on a heartbeat interval.
Version
Updated Mar 16, 2026
You might also like
GitHub PR Reviewer
Auto-review new PRs during business hours. Post summaries, flag issues.
~$0.50/day · ~5 min setup
CI Monitor
Watch GitHub Actions. Alert on failures with the relevant logs.
~$0.20/day · ~3 min setup
Deploy Tracker
Track deployments across repos. Daily changelog of what shipped.
~$0.15/day · ~5 min setup