Download the plaintext logs of an action job
GET
/repos/{owner}/{repo}/actions/jobs/{job_id}/logs
Returns the plaintext log for the job. By default the log for the most recent attempt is returned (ActionRunJob.TaskID tracks the latest task). Pass ?attempt=N to fetch the log for a specific historical attempt; the value matches the attempt field returned by the job listing endpoints.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”owner
required
string
Owner of the repo
repo
required
string
Name of the repo
job_id
required
integer format: int64
ID of the workflow job
Query Parameters
Section titled “Query Parameters”attempt
integer format: int64
1-based attempt number matching the value of attempt in the job listing; omit to fetch the latest attempt of the job
Responses
Section titled “Responses”Plaintext log content
Media typetext/plain
string
Partial log content (Range request)
Media typetext/plain
string
APIUnauthorizedError is a unauthorized error response
Media typetext/plain
object
message
string
url
string
APIForbiddenError is a forbidden error response
Media typetext/plain
object
message
string
url
string
APINotFound is a not found error response
Media typetext/plain
object
errors
Array<string>
message
string
url
string