如何获取 GitHub 操作工作流程的总构建时间?

Dev*_*Ops 6 github-actions

有没有办法获取 GitHub 操作工作流程的总构建时间?我在 GitHub API 和 GraphQL 中没有找到与此相关的任何内容。

小智 3

您要查找的内容似乎位于 github 文档

这是该文档中的一个示例

curl \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/octocat/hello-world/actions/runs/42/timing
Run Code Online (Sandbox Code Playgroud)

请注意,运行编号不是顺序生成的编号,而是到达运行实例时出现在 url 末尾的编号