1
0
Fork 0
mirror of https://github.com/actions/toolkit synced 2025-05-10 00:53:10 +00:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {