Rename createHttpClient to createActionsCacheClient

This commit is contained in:
Sergey Dolin
2023-07-05 09:53:06 +02:00
parent a9c16cbf4d
commit 56c9f4224b
4 changed files with 50 additions and 48 deletions

View File

@@ -1,4 +1,4 @@
import {createHttpClient, getCacheApiUrl} from './http-client';
import {createActionsCacheClient, getCacheApiUrl} from './http-client';
import {retryTypedResponse} from './retry';
import {isSuccessStatusCode} from './http-responses';
import {HttpClient} from '@actions/http-client';
@@ -50,7 +50,7 @@ export const downloadFileFromActionsCache = async (
cacheKey: string,
cacheVersion: string
) => {
const httpClient = createHttpClient();
const httpClient = createActionsCacheClient();
const archiveUrl = await getCacheArchiveUrl(
httpClient,
cacheKey,