use highlevel actions cache api

This commit is contained in:
Sergey Dolin
2023-07-05 10:37:35 +02:00
parent 56c9f4224b
commit 19f709fe58
9 changed files with 76 additions and 355 deletions

View File

@@ -0,0 +1,9 @@
import * as cache from '@actions/cache';
import path from 'path';
export const downloadFileFromActionsCache = (
destFileName: string,
cacheKey: string,
cacheVersion: string
): Promise<void> =>
cache.restoreCache([path.dirname(destFileName)], cacheKey) as Promise<void>;