mirror of
https://github.com/actions/toolkit.git
synced 2026-08-11 00:00:28 +02:00
Fix v1 cache service to only check ACTIONS_CACHE_URL
Co-authored-by: Link- <[email protected]>
This commit is contained in:
co-authored by
Link-
parent
89397db14b
commit
bd54a2413a
Vendored
+2
-4
@@ -67,10 +67,8 @@ export function isFeatureAvailable(): boolean {
|
||||
return !!process.env['ACTIONS_RESULTS_URL']
|
||||
case 'v1':
|
||||
default:
|
||||
// For v1, we need either ACTIONS_CACHE_URL or ACTIONS_RESULTS_URL
|
||||
return !!(
|
||||
process.env['ACTIONS_CACHE_URL'] || process.env['ACTIONS_RESULTS_URL']
|
||||
)
|
||||
// For v1, we only need ACTIONS_CACHE_URL
|
||||
return !!process.env['ACTIONS_CACHE_URL']
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user