mirror of
https://github.com/actions/toolkit
synced 2025-05-10 17:12:54 +00:00
minor
This commit is contained in:
parent
76ac2fcd59
commit
a71585a450
1 changed files with 10 additions and 0 deletions
10
packages/cache/src/cache.ts
vendored
10
packages/cache/src/cache.ts
vendored
|
@ -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
|
* Restores cache from keys
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue