diff --git a/dist/index.js b/dist/index.js index 5b670192..1fdf6a8c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -29652,17 +29652,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.run = void 0; const core = __importStar(__nccwpck_require__(9093)); const github = __importStar(__nccwpck_require__(5942)); -const getActionsCacheList = (octokit, repo, ref) => { +const deleteRefActionsCache = async (octokit, repo, ref) => { // Get the list of cache IDs // https://github.com/octokit/plugin-paginate-rest.js#octokitpaginate const iterator = octokit.paginate.iterator(octokit.rest.actions.getActionsCacheList, { ...repo, - ref: ref + ref }); - return iterator; -}; -const deleteRefActionsCache = async (octokit, repo, ref) => { - const iterator = getActionsCacheList(octokit, repo, ref); for await (const { data: cacheList } of iterator) { for (const { id: cacheId } of cacheList) { if (!cacheId)