cache: run cache.post in core.group

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2024-03-15 18:08:53 +01:00
parent cd14c5b580
commit e73765a5ce
2 changed files with 4 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ export class Cache {
public static async post(): Promise<CachePostState | undefined> { public static async post(): Promise<CachePostState | undefined> {
const state = core.getState(Cache.POST_CACHE_KEY); const state = core.getState(Cache.POST_CACHE_KEY);
if (!state) { if (!state) {
core.debug(`Cache.post no state`); core.info(`State not set`);
return Promise.resolve(undefined); return Promise.resolve(undefined);
} }
let cacheState: CachePostState; let cacheState: CachePostState;

View File

@@ -42,6 +42,8 @@ export async function run(main: () => Promise<void>, post?: () => Promise<void>)
if (post) { if (post) {
await post(); await post();
} }
await Cache.post(); await core.group(`Post cache`, async () => {
await Cache.post();
});
} }
} }