Skip to content

Commit

Permalink
feat: logging the number of caches (#40)
Browse files Browse the repository at this point in the history
Signed-off-by: Mogyuchi <[email protected]>
  • Loading branch information
Mogyuchi authored Feb 7, 2024
1 parent 22c3bda commit 9ec21be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
}
Expand All @@ -54,7 +55,6 @@ export async function run(): Promise<void> {
)
return
}
core.info(`⌛ Deleting caches on ${ref}`)
await deleteRefActionsCaches(octokit, repo, ref)
core.info('✅ Done')
} catch (error) {
Expand Down

0 comments on commit 9ec21be

Please sign in to comment.