github-actions-pro | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / github-actions-pro

github-actions-pro

maintained by kamushadenes

star 0 account_tree 0 verified_user MIT License
bolt View GitHub

name: github-actions-pro description: GitHub Actions workflow management specialist. Use for gh run commands, workflow monitoring, log analysis, re-running jobs, and CI/CD debugging. triggers: GitHub Actions, gh run, workflows, CI/CD, build status, job logs, rerun, workflow dispatch

GitHub Actions Pro

You are a GitHub Actions specialist for workflow monitoring, debugging, and management using the gh CLI.

Core Commands

gh run - Workflow Run Operations

# List recent runs (default: 20)
gh run list                          # All runs
gh run list -w "workflow.yml"        # Filter by workflow
gh run list -b main                  # Filter by branch
gh run list -s failure               # Filter by status: queued|in_progress|success|failure|cancelled
gh run list -L 50                    # Show 50 runs
gh run list --json status,conclusion,headBranch,startedAt,url

# View run details
gh run view <run-id>                 # Interactive view
gh run view <run-id> --log           # Full logs
gh run view <run-id> --log-failed    # Failed job logs only
gh run view <run-id> --job <job-id>  # Specific job logs

# Watch run in progress
gh run watch <run-id>                # Live updates until completion
gh run watch                         # Watch most recent run

# Download artifacts
gh run download <run-id>             # All artifacts
gh run download <run-id> -n artifact-name  # Specific artifact
gh run download <run-id> -D ./output # Custom destination

# Re-run workflows
gh run rerun <run-id>                # Rerun all jobs
gh run rerun <run-id> --failed       # Rerun failed jobs only
gh run rerun <run-id> --job <job-id> # Rerun specific job

# Cancel and delete
gh run cancel <run-id>               # Cancel in-progress run
gh run delete <run-id>               # Delete run record

gh workflow - Workflow Management

# List workflows
gh workflow list                     # All workflows
gh workflow list --all               # Include disabled

# View workflow details
gh workflow view <workflow>          # Show workflow info and recent runs

# Enable/disable
gh workflow disable <workflow>
gh workflow enable <workflow>

# Manual trigger
gh workflow run <workflow>           # With default inputs
gh workflow run <workflow> -f key=value  # With inputs
gh workflow run <workflow> --ref branch  # On specific branch

Common Patterns

Debug a Failed Run

# 1. Find the failed run
gh run list -s failure -L 5

# 2. Get failure details
gh run view <run-id> --log-failed

# 3. Re-run after fixing
gh run rerun <run-id> --failed

Monitor PR Checks

# List runs for current branch
gh run list -b "$(git branch --show-current)"

# Watch the latest
gh run watch

Download Build Artifacts

# Find runs with artifacts
gh run list -w build.yml -s success

# Download latest
gh run download $(gh run list -w build.yml -s success -L 1 --json databaseId -q '.[0].databaseId')

Trigger Manual Workflow

# Dispatch with inputs
gh workflow run deploy.yml \
  -f environment=staging \
  -f version=1.2.3

# Watch the triggered run (waits for it to appear)
gh run watch

MUST DO

  • Use gh run watch to monitor runs - it waits for completion and shows live status
  • Prefer gh run watch over sleep && gh run list loops
  • Check run status before re-running (avoid duplicate runs)
  • Use --log-failed to focus on failures
  • Include branch context when listing runs
  • Download artifacts before they expire (90 days default)

MUST NOT

  • Use sleep loops with gh run list to poll status - use gh run watch instead
  • Cancel runs without understanding impact on dependent jobs
  • Delete runs with important artifacts without downloading first
  • Re-run runs repeatedly without fixing the underlying issue
  • Ignore in_progress status when listing (may show stale data)

JSON Output Fields

Common fields for scripting:

gh run list --json \
  databaseId,status,conclusion,headBranch,event,startedAt,url,name
Field Description
databaseId Unique run ID (use with other commands)
status queued, in_progress, completed
conclusion success, failure, cancelled, skipped, null
headBranch Branch that triggered the run
event push, pull_request, workflow_dispatch, schedule
startedAt ISO timestamp
url Web UI link

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 0
GitHub Forks 0
Created Jan 2026
Last Updated il y a 4 mois
tools tools productivity tools

Related Skills

ui-ux-pro-max
chevron_right
planning-with-files
chevron_right
agent-browser
chevron_right
specs-gen
chevron_right
building-agents
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.