Back to list
kamushadenes

github-actions-pro

by kamushadenes

My Nix (nix-darwin, NixOS, home-manager) configuration

0🍴 0📅 Jan 22, 2026

SKILL.md


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
FieldDescription
databaseIdUnique run ID (use with other commands)
statusqueued, in_progress, completed
conclusionsuccess, failure, cancelled, skipped, null
headBranchBranch that triggered the run
eventpush, pull_request, workflow_dispatch, schedule
startedAtISO timestamp
urlWeb UI link

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon