List jobs for a workflow run
Lists jobs for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/[email protected]/rest/overview/resources-in-the-rest-api#parameters).
/repos/{owner}/{repo}/actions/runs/{run_id}/jobs- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
- run_id integerrequired
The id of the workflow run.
Query Parameters
- filter stringoptional
Filters jobs by their `completed_at` timestamp. Can be one of: \* `latest`: Returns jobs from the most recent execution of the workflow run. \* `all`: Returns all jobs for a workflow run, including from old executions of the workflow run.
- per_page integeroptional
Results per page (max 100)
- page integeroptional
Page number of the results to fetch.
Responses
Response
Headers
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last" jobs array[Job object]required
items Job objectInformation of a job execution in a workflow run
Information of a job execution in a workflow run
Example: https://api.github.com/repos/github/hello-world/check-runs/4
The time that the job finished, in ISO 8601 format.
Example: 2019-08-08T08:00:00-07:00
The outcome of the job.
Example: success
The SHA of the commit that is being run.
Example: 009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d
Example: https://github.com/github/hello-world/runs/4
The id of the job.
Example: 21
The name of the job.
Example: test-coverage
Example: MDg6Q2hlY2tSdW40
Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.
Example: 1
The id of the associated workflow run.
Example: 5
Example: https://api.github.com/repos/github/hello-world/actions/runs/5
The time that the job started, in ISO 8601 format.
Example: 2019-08-08T08:00:00-07:00
The phase of the lifecycle that the job is currently in.
Example: queued
Steps in this job.
Example: https://api.github.com/repos/github/hello-world/actions/jobs/21