返回 Skill 列表
extension
分类: 开发与工程无需 API Key

github-workflow-fixer

分析并修复GitHub Actions工作流失败。当工作流失败、出现CI/CD问题或需要调试GitHub Actions运行时使用。触发请求如“修复工作流”、“构建为什么会失败”、“检查CI状态”、“调试GitHub Actions”或“工作流失败”。

person作者: jakexiaohubgithub

GitHub Workflow Fixer

Analyze GitHub Actions workflow results and provide problem-solving guidance.

Workflow

  1. Identify failed runs: Use gh run list with --branch or --workflow flag
  2. Analyze logs: Use gh run view <run_id> --log-failed to view error details
  3. Diagnose issues: Identify root cause from log output
  4. Fix issues: Apply necessary fixes to workflow files or source code
  5. Verify: Re-run workflow to confirm fix

By Branch (Current Branch)

Find and fix failed workflows on the current branch:

# Get current branch
BRANCH=$(git branch --show-current)

# List runs on this branch
gh run list --branch "$BRANCH"

# View failed run logs
gh run view <run_id> --log-failed

By Workflow File

Find and fix failed workflows for a specific workflow file:

# List runs for a workflow file
gh run list --workflow=<workflow_file>

# View failed run logs
gh run view <run_id> --log-failed

Common Issues

  • Dependency failures: Check package versions and lock files
  • Test failures: Review test output and fix failing tests
  • Build errors: Check syntax errors and type issues
  • Permission errors: Verify workflow permissions and secrets
  • Timeout issues: Optimize long-running steps or increase timeout