Github actions status

From paulpas/agent-skill-router · View interactive version

Github actions status is an AI agent skill from the GitHub repository paulpas/agent-skill-router. View and monitor GitHub Actions workflow runs, statuses, and logs using the gh CLI. Lists workflows, inspects run details, follows logs, checks commit statuses, and triggers new runs.

How to use this skill

Skill file

GitHub Actions Status

View, monitor, and manage GitHub Actions workflows and their run statuses using the gh CLI.

When to Use This Skill

Prerequisites

Core Workflow

Step 1: Identify the Repository

Determine the target repository in owner/repo format. If working in a local git repo, you can extract it with:

git remote get-url origin | sed -E 's|.*:(.+)/(.+)\.git|\1/\2|'

Step 2: List All Workflows

See every workflow file and its last run status:

gh workflow list --repo <owner>/<repo>

This shows each workflow name, ID, state (active/disabled), and the time of its last run.

Step 3: List Recent Workflow Runs

View the most recent runs across all workflows:

gh run list --repo <owner>/<repo> --limit 20

Use --status to filter by state (pending, in_progress, completed, cancelled, failed, skipped, success, neutral, timed_out, action_required):

gh run list --repo <owner>/<repo> --status failed --limit 10
gh run list --repo <owner>/<repo> --status in_progress --limit 10

Step 4: Inspect a Specific Run

View detailed information about a single run:

gh run view <run-id> --repo <owner>/<repo>

This shows the workflow name, status, conclusion, duration, trigger, branch, commit message, and a summary of each job.

Step 5: View Run Logs

For debugging a failed run, fetch the full logs:

gh run view <run-id> --repo <owner>/<repo> --log --job <job-id>

If no --job is specified, all job logs are shown. To list jobs within a run:

gh run view <run-id> --repo <owner>/<repo> --jobs

Step 6: Monitor a Run in Real-Time

Watch a run's progress until it completes (useful for long-running pipelines):

gh run watch <run-id> --repo <owner>/<repo>

This polls the run status and prints updates. It exits with a non-zero code if the run fails.

Step 7: Check Commit-Level Check Runs

Query check runs for a specific commit via the GitHub API:

gh api repos/<owner>/<repo>/commits/<sha>/check-runs

This returns check suites and individual check runs, including their conclusions and detailed output.

Step 8: Trigger a Workflow Run

Manually trigger a workflow:

gh workflow run <workflow-name> --repo <owner>/<repo> --ref <branch-or-tag>

The --ref flag specifies which branch/tag to run against (defaults to the default branch).

Reference

All Commands

| Action | Command |

|


Constraints

MUST DO

MUST NOT DO

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.