Handle ACTIONS_CACHE_SERVICE_V2 feature flag

This commit is contained in:
Bassem Dghaidi authored and GitHub committed 2024-11-14 03:00:43 -08:00
1 parent 822ba1b619
commit 631f0c7f3c
1 file changed
+1 -2
+1 -2
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 {