<p><a href="https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs" rel="nofollow noreferrer">List workflow runs</a> would be the equivalent API endpoint in Github Actions:</p>
<pre><code>GET /repos/:owner/:repo/actions/workflows/:workflow_id/runs
</code></pre>
<p>You can use the <code>status</code> query parameter e.g. to filter for successful runs:</p>
<pre><code>GET /repos/:owner/:repo/actions/workflows/:workflow_id/runs?status=success
</code></pre>

CC BY-SA 4.0
2020-06-22T19:01:08.430Z
2020-06-22T19:01:08.430Z
Max
<p>I'm looking for an option similar to Jenkins where I can view the last build, last successful build, last failed build, etc. with a simple api call. The Jenkins example would be:</p>

<pre><code>jenkins_url + /job/${job_name}/lastBuild/
</code></pre>

<p>Does Github Actions offer anything comparable to this? </p>

<jenkins><github><github-actions><api>
Github Actions Last Build API
Preston Martin
# Github Actions Last Build API

(Asked by: username_0 on 2020-01-31)

I'm looking for an option similar to Jenkins where I can view the last build, last successful build, last failed build, etc. with a simple api call. The Jenkins example would be:
jenkins_url + /job/${job_name}/lastBuild/

Does Github Actions offer anything comparable to this?

**Tags:** jenkins, github, github-actions, api


---

## 1 answers

### Answer by username_1 on 2020-06-22. Score: 2 | Accepted answer

List workflow runs would be the equivalent API endpoint in Github Actions:
GET /repos/:owner/:repo/actions/workflows/:workflow_id/runs

You can use the status query parameter e.g. to filter for successful runs:
GET /repos/:owner/:repo/actions/workflows/:workflow_id/runs?status=success


---

