SuperAPI AI 工具集

github-workflows

部署与运维

查看项目

更新于 10-16 02:39

技能介绍

用途:处理 GitHub Actions CI/CD 工作流,包括编写、运行与调试,并避免依赖过时的训练数据,语法、版本和参数均取自实时来源。

主要能力:通过脚本 scripts/ci_monitor.cjs 统一执行 CI 操作,基础用法为 node scripts/ci_monitor.cjs <command>,使用前可运行 --help 查看可用参数。支持的命令包括:列出近期运行 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>。

文档来源:编写工作流语法前,从 https://docs.github.com/en/actions/reference/workflows-and-actions/ 获取对应 .md 文件并只读所需章节,包括 workflow-syntax.md(name、on、jobs、permissions、concurrency、on.workflow_call)、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' 查询。

限制与约束:所有 CI 操作须经由 ci_monitor.cjs,不应直接使用 gh CLI。验证不能仅以“无错误”为准,须给出可观察的变化证据(BEFORE、AFTER 与来自 ci_monitor.cjs 的输出)。参考资料为 references/gh/SKILL.md(gh CLI 参考)。其余安装或平台细节资料暂未提供。