mirror of
https://github.com/actions/stale.git
synced 2025-12-20 06:42:15 +00:00
use highlevel actions cache api
This commit is contained in:
9
src/classes/actions-cache-hilevel/download.ts
Normal file
9
src/classes/actions-cache-hilevel/download.ts
Normal 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>;
|
||||
Reference in New Issue
Block a user