1
0
Fork 0

changed function name

pull/1028/head
Shubham Tiwari 2022-03-23 16:46:49 +05:30
parent 05f407f4ff
commit 8fe3522c0b
2 changed files with 4 additions and 4 deletions

View File

@ -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.
- Added support to check if Artifact cache service is available or not.

View File

@ -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
}