SuperAPI AI 工具集

github-workflows

办公与效率

查看项目

更新于 10-16 05:50

技能介绍

用途:在不依赖过时训练数据的前提下编写、运行和调试 GitHub Actions CI/CD 工作流,所有语法、版本与参数均来自实时来源。主要能力:通过统一脚本 ci_monitor.cjs 执行 CI 操作,支持列出近期运行(runs [--branch <name>])、监控运行中的工作流(watch <run-id>)、脚本中快速失败(fail-fast <run-id>)、查看失败原因(log-failed <run-id>)、测试通过/失败统计(test-summary <run-id>)、检查 action 版本(check-actions [file])、搜索日志(grep <run-id> --pattern <regex>)、等待部署(wait-for <run-id> <job> --keyword <text>)。用法:所有 CI 操作经 scripts/ci_monitor.cjs 进行,命令形式为 node scripts/ci_monitor.cjs <command>;使用前先运行 --help 查看可用参数;不要直接调用 gh CLI,该脚本对其做了封装并提供可观测输出。编写工作流语法前,从 https://docs.github.com/en/actions/reference/workflows-and-actions/ 获取对应 .md 文件并只读所需章节,涉及 workflow-syntax.md、workflow-commands.md、expressions.md、contexts.md、events-that-trigger-workflows.md 等。版本核验:action 版本用 node ci_monitor.cjs check-actions <file>;Node.js LTS 用 curl -s https://nodejs.org/dist/index.json | jq '.[0].version'。验证约束:仅“无错误”不算验证,需证明可观测变化,给出 BEFORE、AFTER 与 EVIDENCE(来自 ci_monitor.cjs 的输出)。参考资料包括 references/gh/SKILL.md(gh CLI 参考)。限制:具体安装方式、依赖要求与更多参数细节暂未提供。