Files
stale/src/classes/actions-cache-hilevel/download.ts
T

10 lines
279 B
TypeScript
Raw Normal View History

2023-07-05 10:37:35 +02:00
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>;