Answers: <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>
  
Answers: CC BY-SA 4.0
Answers: 2020-06-22T19:01:08.430Z
Answers: 2020-06-22T19:01:08.430Z
Answers: Max
Body: <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>
  
Tags: <jenkins><github><github-actions><api>
Title: Github Actions Last Build API
UserDisplayName: Preston Martin
ThreadText: # 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](https://developer.github.com/v3/actions/workflow-runs/#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
  
  ```
  
  
  ---
  
  