repo
scope to use this endpoint.actions:read
permission to use this endpoint.curl --location --request GET 'https://api.github.com/repos///actions/caches'
{
"actions_caches": [
{
"created_at": "2019-01-24T22:45:36.000Z",
"id": 2,
"key": "Linux-node-958aff96db2d75d67787d1e634ae70b659de937b",
"last_accessed_at": "2019-01-24T22:45:36.000Z",
"ref": "refs/heads/main",
"size_in_bytes": 1024,
"version": "73885106f58cc52a7df9ec4d4a5622a5614813162cb516c759a30af6bf56e6f0"
}
],
"total_count": 2
}
ref
for a branch can be formatted either as refs/heads/<branch name>
or simply <branch name>
. To reference a pull request use refs/pull/<number>/merge
.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.