From e73765a5ce5a9b0ba6b1a06b011de89fa79e3789 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Fri, 15 Mar 2024 18:08:53 +0100 Subject: [PATCH] cache: run cache.post in core.group Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/cache.ts | 2 +- src/index.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cache.ts b/src/cache.ts index 0aa069ac..71682637 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -103,7 +103,7 @@ export class Cache { public static async post(): Promise { const state = core.getState(Cache.POST_CACHE_KEY); if (!state) { - core.debug(`Cache.post no state`); + core.info(`State not set`); return Promise.resolve(undefined); } let cacheState: CachePostState; diff --git a/src/index.ts b/src/index.ts index c43fe485..9c23eacb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -42,6 +42,8 @@ export async function run(main: () => Promise, post?: () => Promise) if (post) { await post(); } - await Cache.post(); + await core.group(`Post cache`, async () => { + await Cache.post(); + }); } }