Fix v1 cache service to only check ACTIONS_CACHE_URL
Co-authored-by: Link- <568794+Link-@users.noreply.github.com>
This commit is contained in:
1 parent
c0e1707545
commit
780c52920e
2 files changed
+6
-8
No files matched your search
+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