![](/img/trans.png)
[英]Get the latest workflow run from GitHub Actions using the Octokit API
[英]GitHub Actions API: Get view workflow run history
我正在尋找 API 來檢索 GitHub 操作中特定工作流的先前運行。 我找到了 API,它返回了我整個存儲庫的先前運行,但我只需要特定工作流的運行。
此鏈接完美地描述了我正在尋找的 API: https://docs.github.com/en/actions-run-history/monitoring-andview-trouble-
使用/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
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.