Skip to content

Commit a24f5c1

Browse files
authored
Merge pull request #281 from crazy-max/cache-post-group
cache: run cache.post in core.group
2 parents cd14c5b + e73765a commit a24f5c1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/cache.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class Cache {
103103
public static async post(): Promise<CachePostState | undefined> {
104104
const state = core.getState(Cache.POST_CACHE_KEY);
105105
if (!state) {
106-
core.debug(`Cache.post no state`);
106+
core.info(`State not set`);
107107
return Promise.resolve(undefined);
108108
}
109109
let cacheState: CachePostState;

src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export async function run(main: () => Promise<void>, post?: () => Promise<void>)
4242
if (post) {
4343
await post();
4444
}
45-
await Cache.post();
45+
await core.group(`Post cache`, async () => {
46+
await Cache.post();
47+
});
4648
}
4749
}

0 commit comments

Comments
 (0)