diff --git a/packages/cache/RELEASES.md b/packages/cache/RELEASES.md index c6e664f4..69a44026 100644 --- a/packages/cache/RELEASES.md +++ b/packages/cache/RELEASES.md @@ -52,4 +52,4 @@ - Update `lockfileVersion` to `v2` in `package-lock.json [#1022](https://github.com/actions/toolkit/pull/1022) ### 1.0.11 -- Added support to check if Artifact cache service is enabled or not. \ No newline at end of file +- Added support to check if Artifact cache service is available or not. \ No newline at end of file diff --git a/packages/cache/src/cache.ts b/packages/cache/src/cache.ts index 6b1fae87..c2bcf0d5 100644 --- a/packages/cache/src/cache.ts +++ b/packages/cache/src/cache.ts @@ -44,12 +44,12 @@ function checkKey(key: string): void { } /** - * isEnable to check the presence of Artifact cache service + * isAvailable to check the presence of Artifact cache service * - * @returns boolean return true if Artifact cache service is enable, otherwise false + * @returns boolean return true if Artifact cache service is available, otherwise false */ -export function isEnable(): boolean { +export function isAvailable(): boolean { if (process.env['ACTIONS_CACHE_URL']) { return true }