Compare commits

..

2 Commits

Author SHA1 Message Date
Tõnis Tiigi
a24f5c12ca Merge pull request #281 from crazy-max/cache-post-group
Some checks failed
publish / publish (push) Has been cancelled
cache: run cache.post in core.group
2024-03-15 13:28:15 -07:00
CrazyMax
e73765a5ce cache: run cache.post in core.group
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-03-15 18:10:31 +01:00
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> {
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;

View File

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