use highlevel actions cache api with key-prefix
This commit is contained in:
parent
19f709fe58
commit
d8dfea6c6d
|
@ -36,7 +36,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||
exports.downloadFileFromActionsCache = void 0;
|
||||
const cache = __importStar(__nccwpck_require__(7799));
|
||||
const path_1 = __importDefault(__nccwpck_require__(1017));
|
||||
const downloadFileFromActionsCache = (destFileName, cacheKey, cacheVersion) => cache.restoreCache([path_1.default.dirname(destFileName)], cacheKey);
|
||||
const downloadFileFromActionsCache = (destFileName, cacheKey, cacheVersion) => cache.restoreCache([path_1.default.dirname(destFileName)], cacheKey, [
|
||||
cacheKey
|
||||
]);
|
||||
exports.downloadFileFromActionsCache = downloadFileFromActionsCache;
|
||||
|
||||
|
||||
|
@ -1815,7 +1817,7 @@ class State {
|
|||
this.reset();
|
||||
const serialized = yield this.stateStorage.restore();
|
||||
this.deserialize(serialized);
|
||||
core.info(`state: rehydrated with info about ${this.processedIssuesIDs.size} issue(s)`);
|
||||
core.info(`state: restored with info about ${this.processedIssuesIDs.size} issue(s)`);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,4 +6,6 @@ export const downloadFileFromActionsCache = (
|
|||
cacheKey: string,
|
||||
cacheVersion: string
|
||||
): Promise<void> =>
|
||||
cache.restoreCache([path.dirname(destFileName)], cacheKey) as Promise<void>;
|
||||
cache.restoreCache([path.dirname(destFileName)], cacheKey, [
|
||||
cacheKey
|
||||
]) as Promise<void>;
|
||||
|
|
|
@ -65,7 +65,7 @@ export class State implements IState {
|
|||
const serialized = await this.stateStorage.restore();
|
||||
this.deserialize(serialized);
|
||||
core.info(
|
||||
`state: rehydrated with info about ${this.processedIssuesIDs.size} issue(s)`
|
||||
`state: restored with info about ${this.processedIssuesIDs.size} issue(s)`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue