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