From 9ec21bed6832ba0d0c5c74da5366df6953a11424 Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Wed, 7 Feb 2024 09:36:41 +0900 Subject: [PATCH] feat: logging the number of caches (#40) Signed-off-by: Mogyuchi --- dist/index.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 3506ee9..f9301df 100644 --- a/dist/index.js +++ b/dist/index.js @@ -29695,6 +29695,7 @@ const deleteRefActionsCaches = async (octokit, repo, ref) => { ref, per_page: 100 }); + core.info(`⌛ Deleting ${caches.length} cache(s) on ${ref}`); await Promise.all(caches.map(async (cache) => deleteCache(cache))); }; /** @@ -29713,7 +29714,6 @@ async function run() { core.info('ℹ️ If you suspect this is a bug, please consider raising an issue to help us address it promptly.'); return; } - core.info(`⌛ Deleting caches on ${ref}`); await deleteRefActionsCaches(octokit, repo, ref); core.info('✅ Done'); } diff --git a/src/main.ts b/src/main.ts index b017326..d4826ff 100644 --- a/src/main.ts +++ b/src/main.ts @@ -29,6 +29,7 @@ const deleteRefActionsCaches = async ( per_page: 100 } ) + core.info(`⌛ Deleting ${caches.length} cache(s) on ${ref}`) await Promise.all(caches.map(async cache => deleteCache(cache))) } @@ -54,7 +55,6 @@ export async function run(): Promise { ) return } - core.info(`⌛ Deleting caches on ${ref}`) await deleteRefActionsCaches(octokit, repo, ref) core.info('✅ Done') } catch (error) {