Files
stale/src/classes/actions-cache-hilevel/download.ts
2023-07-05 10:43:19 +02:00

12 lines
299 B
TypeScript

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, [
cacheKey
]) as Promise<void>;