actions
Get a job for a workflow run
Gets a specific job in 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.
get/repos/{owner}/{repo}/actions/jobs/{job_id}
Path parameters
ownerstring required
The account owner of the repository. The name is not case sensitive.
repostring required
The name of the repository without the .git extension. The name is not case sensitive.
job_idinteger required
The unique identifier of the job.
Response
Response
Example response
{
"id": 21,
"run_id": 5,
"run_url": "https://api.github.com/repos/github/hello-world/actions/runs/5",
"run_attempt": 1,
"node_id": "MDg6Q2hlY2tSdW40",
"head_sha": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d",
"url": "https://api.github.com/repos/github/hello-world/actions/jobs/21",
"html_url": "https://github.com/github/hello-world/runs/4",
"status": "queued",
"conclusion": "success",
"started_at": "2019-08-08T08:00:00-07:00",
"completed_at": "2019-08-08T08:00:00-07:00",
"name": "test-coverage",
"steps": [
{
"status": "queued",
"conclusion": "success",
"name": "test-coverage",
"number": 1,
"started_at": "2019-08-08T08:00:00-07:00",
"completed_at": "2019-08-08T08:00:00-07:00"
}
],
"check_run_url": "https://api.github.com/repos/github/hello-world/check-runs/4",
"labels": [
"self-hosted",
"foo",
"bar"
],
"runner_id": 1,
"runner_name": "my runner",
"runner_group_id": 2,
"runner_group_name": "my runner group"
}