mirror of
https://github.com/actions/toolkit.git
synced 2026-08-13 00:00:44 +02:00
added test case
This commit is contained in:
+8
@@ -123,3 +123,11 @@ export function assertDefined<T>(name: string, value?: T): T {
|
||||
|
||||
return value
|
||||
}
|
||||
|
||||
export function isFeatureAvailable(): boolean {
|
||||
if (process.env["ACTIONS_CACHE_URL"]) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user