mirror of https://github.com/actions/toolkit
changed function name
parent
05f407f4ff
commit
8fe3522c0b
|
@ -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.
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue