mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-03-31 20:23:21 +08:00
Handle ACTIONS_CACHE_SERVICE_V2 feature flag
This commit is contained in:
3
packages/cache/src/internal/config.ts
vendored
3
packages/cache/src/internal/config.ts
vendored
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user