cache: run cache.post in core.group
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user