Github API

Getting access, Developing, Testing

Back to Github

List GitHub Actions caches for a repository

Lists the GitHub Actions caches for a repository. You must authenticate using an access token with the repo scope to use this endpoint. 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. per_page: type: integer default: 30 description: The number of results per page (max 100). page: type: integer default: 1 description: Page number of the results to fetch. ref: type: string description: >- The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/<branch name>`. To reference a pull request use `refs/pull/<number>/merge`. key: type: string description: An explicit key or prefix for identifying the cache sort: type: string enum: - created_at - last_accessed_at - size_in_bytes default: last_accessed_at description: >- The property to sort the results by. `created_at` means when the cache was created. `last_accessed_at` means when the cache was last accessed. `size_in_bytes` is the size of the cache in bytes. direction: type: string enum: - asc - desc default: desc description: The direction to sort the results by. required: - owner - repo title: Parameters

Output

type: object title: Repository actions caches properties: total_count: description: Total number of caches type: integer example: 2 actions_caches: description: Array of caches type: array items: type: object properties: id: type: integer example: 2 ref: type: string example: refs/heads/main key: type: string example: Linux-node-958aff96db2d75d67787d1e634ae70b659de937b version: type: string example: 73885106f58cc52a7df9ec4d4a5622a5614813162cb516c759a30af6bf56e6f0 last_accessed_at: type: string format: date-time example: '2019-01-24T22:45:36.000Z' created_at: type: string format: date-time example: '2019-01-24T22:45:36.000Z' size_in_bytes: type: integer example: 1024