|
|
@ -4,7 +4,8 @@ import { BearerCredentialHandler } from "@actions/http-client/auth";
|
|
|
|
import { HttpClient, HttpCodes, ITypedResponse } from "@actions/http-client";
|
|
|
|
import { HttpClient, HttpCodes, ITypedResponse } from "@actions/http-client";
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
IHttpClientResponse,
|
|
|
|
IHttpClientResponse,
|
|
|
|
IRequestOptions
|
|
|
|
IRequestOptions,
|
|
|
|
|
|
|
|
IHeaders
|
|
|
|
} from "@actions/http-client/interfaces";
|
|
|
|
} from "@actions/http-client/interfaces";
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
ArtifactCacheEntry,
|
|
|
|
ArtifactCacheEntry,
|
|
|
@ -88,9 +89,7 @@ export async function getCacheEntry(
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!isSuccessStatusCode(response.statusCode)) {
|
|
|
|
if (!isSuccessStatusCode(response.statusCode)) {
|
|
|
|
throw new Error(
|
|
|
|
throw new Error(`Cache service responded with ${response.statusCode}`);
|
|
|
|
`Cache service responded with ${response.statusCode}`
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const cacheResult = response.result;
|
|
|
|
const cacheResult = response.result;
|
|
|
|