Log key and ref for which we're retrieving caches
This commit is contained in:
parent
0b4214972e
commit
1bea17f717
6 changed files with 14 additions and 7 deletions
3
lib/api-client.js
generated
3
lib/api-client.js
generated
|
|
@ -165,8 +165,9 @@ function computeAutomationID(analysis_key, environment) {
|
|||
}
|
||||
exports.computeAutomationID = computeAutomationID;
|
||||
/** List all Actions cache entries matching the provided key and ref. */
|
||||
async function listActionsCaches(key, ref) {
|
||||
async function listActionsCaches(key, ref, logger) {
|
||||
const repositoryNwo = (0, repository_1.parseRepositoryNwo)((0, util_1.getRequiredEnvParam)("GITHUB_REPOSITORY"));
|
||||
logger.debug(`Retrieving Actions caches for key ${key} and ref ${ref}`);
|
||||
const apiClient = getApiClient();
|
||||
return await apiClient.paginate("GET /repos/{owner}/{repo}/actions/caches", { owner: repositoryNwo.owner, repo: repositoryNwo.repo, key, ref }, (response) => response.data.actions_caches);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue