Github API

Getting access, Developing, Testing

Back to Github

Get GitHub Actions cache usage for a repository

Gets GitHub Actions cache usage for a repository. The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated. 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.

Input

type: object properties: parameters: type: object properties: owner: type: string description: The account owner of the repository. The name is not case sensitive. repo: type: string description: The name of the repository. The name is not case sensitive. required: - owner - repo title: Parameters

Output

type: object title: Actions Cache Usage by repository properties: full_name: description: The repository owner and name for the cache usage being shown. type: string example: octo-org/Hello-World active_caches_size_in_bytes: description: >- The sum of the size in bytes of all the active cache items in the repository. type: integer example: 2322142 active_caches_count: description: The number of active caches in the repository. type: integer example: 3