do not restore if caches does not exist

This commit is contained in:
Sergey Dolin
2023-07-20 21:30:10 +02:00
parent 47ab9e7777
commit 19b0faf982
3 changed files with 62 additions and 18 deletions

View File

@@ -64,8 +64,9 @@ export class State implements IState {
this.reset();
const serialized = await this.stateStorage.restore();
this.deserialize(serialized);
core.info(
`state: restored with info about ${this.processedIssuesIDs.size} issue(s)`
);
if (this.processedIssuesIDs.size > 0)
core.info(
`state: restored with info about ${this.processedIssuesIDs.size} issue(s)`
);
}
}