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