1
0
Fork 0

Handle ACTIONS_CACHE_SERVICE_V2 feature flag

pull/1857/head
Bassem Dghaidi 2024-11-14 03:00:43 -08:00 committed by GitHub
parent 4e1912a3c3
commit d109d9c03e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -6,9 +6,8 @@ export function getRuntimeToken(): string {
return token
}
// TODO: Use the feature flag to determine the cache service version
export function getCacheServiceVersion(): string {
return process.env['ACTIONS_CACHE_SERVICE_VERSION'] || 'v1'
return process.env['ACTIONS_CACHE_SERVICE_V2'] ? 'v2' : 'v1';
}
export function getCacheServiceURL(): string {