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> =>
|
2023-07-05 10:43:19 +02:00
|
|
|
cache.restoreCache([path.dirname(destFileName)], cacheKey, [
|
|
|
|
|
cacheKey
|
|
|
|
|
]) as Promise<void>;
|