Handle ACTIONS_CACHE_SERVICE_V2 feature flag

This commit is contained in:
Bassem Dghaidi
2024-11-14 03:00:43 -08:00
committed by GitHub
parent 4e1912a3c3
commit d109d9c03e

View File

@@ -6,9 +6,8 @@ export function getRuntimeToken(): string {
return token return token
} }
// TODO: Use the feature flag to determine the cache service version
export function getCacheServiceVersion(): string { 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 { export function getCacheServiceURL(): string {