artifact_id parameter
Get an artifact
Gets a specific artifact 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.
Path Parameters
Response
200 application/json
Response
Response
Artifact
An artifact
Example:5
Example:MDEwOkNoZWNrU3VpdGU1
The name of the artifact.
Example:AdventureWorks.Framework
The size in bytes of the artifact.
Example:12345
Example:https://api.github.com/repos/github/hello-world/actions/artifacts/5
Example:https://api.github.com/repos/github/hello-world/actions/artifacts/5/zip
Whether or not the artifact has expired.
Path Parameters
Delete an artifact
Deletes an artifact for a workflow run. You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the actions:write
permission to use this endpoint.
Path Parameters
artifact_id parameter
Response
204
Response
Response
Path Parameters
Download an artifact
Gets a redirect URL to download an archive for a repository. This URL expires after 1 minute. Look for Location:
in
the response header to find the URL for the download. The :archive_format
must be zip
. 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.
Path Parameters
artifact_id parameter
Response
302
Response
Response
Path Parameters
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.
Path Parameters
job_id parameter
Response
200 application/json
Response
Response
Job
Information of a job execution in a workflow run
The id of the job.
Example:21
The id of the associated workflow run.
Example:5
Example:https://api.github.com/repos/github/hello-world/actions/runs/5
Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.
Example:1
Example:MDg6Q2hlY2tSdW40
The SHA of the commit that is being run.
Example:009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d
Example:https://api.github.com/repos/github/hello-world/actions/jobs/21
Example:https://github.com/github/hello-world/runs/4
The phase of the lifecycle that the job is currently in.
Allowed values:queuedin_progresscompleted
Example:queued
The outcome of the job.
Example:success
The time that the job started, in ISO 8601 format.
Example:2019-08-08T08:00:00-07:00
The time that the job finished, in ISO 8601 format.
Example:2019-08-08T08:00:00-07:00
The name of the job.
Example:test-coverage
Steps in this job.
Show Child Parameters
Example:https://api.github.com/repos/github/hello-world/check-runs/4
Path Parameters
Download job logs for a workflow run
Gets a redirect URL to download a plain text file of logs for a workflow job. This link expires after 1 minute. Look
for Location:
in the response header to find the URL for the download. 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.
Path Parameters
job_id parameter
Response
302
Response
Response