Merge pull request #281 from crazy-max/cache-post-group
Some checks failed
publish / publish (push) Has been cancelled
Some checks failed
publish / publish (push) Has been cancelled
cache: run cache.post in core.group
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