1
0
Fork 0
pull/1036/head
Deepak Dahiya 2022-03-29 22:19:10 +00:00 committed by GitHub
parent 76ac2fcd59
commit a71585a450
1 changed files with 10 additions and 0 deletions

View File

@ -43,6 +43,16 @@ function checkKey(key: string): void {
}
}
/**
* isFeatureAvailable to check the presence of Actions cache service
*
* @returns boolean return true if Actions cache service feature is available, otherwise false
*/
export function isFeatureAvailable(): boolean {
return !!process.env['ACTIONS_CACHE_URL']
}
/**
* Restores cache from keys
*