【问题标题】:GitHub Actions API: Get view workflow run historyGitHub Actions API:获取查看工作流运行历史记录
【发布时间】:2022-01-13 09:16:43
【问题描述】:

我正在寻找一个 API 来检索 GitHub Actions 中特定工作流程的先前运行。 我找到了返回整个存储库以前运行的 API,但我只需要特定工作流的运行。

此链接完美地描述了我正在寻找的 API: https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/viewing-workflow-run-history

【问题讨论】:

    标签: github github-actions github-api


    【解决方案1】:

    使用/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs 端点列出给定存储库中给定工作流 ID 的运行。

    例如,要获取 rust-lang/rust 存储库的所有 CI 作业运行,请使用 https://api.github.com/repos/rust-lang/rust/actions/workflows/817415/runs。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-13
      • 1970-01-01
      • 2021-01-08
      • 2018-11-01
      • 2021-01-29
      • 1970-01-01
      • 1970-01-01
      • 2020-04-02
      相关资源
      最近更新 更多