mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 18:39:07 +08:00
Fix CI
This commit is contained in:
parent
3c38dcfe1f
commit
429adbf862
12
packages/cache/src/cache.ts
vendored
12
packages/cache/src/cache.ts
vendored
@ -44,17 +44,17 @@ function checkKey(key: string): void {
|
||||
}
|
||||
|
||||
/**
|
||||
* isEnable to check the presence of Artifact cache service.
|
||||
* isEnable to check the presence of Artifact cache service
|
||||
*
|
||||
* @returns boolean
|
||||
* @returns boolean return true if Artifact cache service is enable, otherwise false
|
||||
*/
|
||||
|
||||
export function isEnable(): boolean{
|
||||
if (process.env['ACTIONS_CACHE_URL']){
|
||||
return true;
|
||||
export function isEnable(): boolean {
|
||||
if (process.env['ACTIONS_CACHE_URL']) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false;
|
||||
return false
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user