Fetch and display logs from the latest failed GitHub Actions workflow runs.
- Debug CI/CD failures from the CLI
- Works great with agentic coding tools
You need Node.js and GitHub CLI.
- Download
gh-show-actions-logto a directory included in your PATH - Make the script executable (
chmod +x gh-show-actions-log)
# Show failed runs for current repository and commit
gh-show-actions-log
# or specific repo/commit:
gh-show-actions-log owner/repo abcd1234-
Ask your favourite AI coding assistant to fix CI failures:
Run `gh-show-actions-log` to view errors and address them if any -
Add this to your global AGENTS.md for your favourite AI coding assistant. Think of it as if you just added a GitHub Actions MCP.
You have access to the `gh-show-actions-log` CLI tool. It shows test status for the current commit in GitHub Actions, and show logs for failures. If a run is pending, it waits until it completes. Use this to query status or show logs from GitHub Actions CI. -
Mark a draft PR as ready for review as soon as it passes:
gh-show-actions-log && gh pr ready -
Get alerted when CI fails or succeeds:
gh-show-actions-log && say "CI passed!" || say "CI failed!"
-
Show logs after pushing code:
git push && gh-show-actions-log