mirror of https://github.com/actions/toolkit
Fix response code
parent
24685611e2
commit
b8c50aa82d
|
@ -136,8 +136,7 @@ async function listCache(
|
||||||
const response = await retryTypedResponse('listCache', async () =>
|
const response = await retryTypedResponse('listCache', async () =>
|
||||||
httpClient.getJson<ArtifactCacheList>(getCacheApiUrl(resource))
|
httpClient.getJson<ArtifactCacheList>(getCacheApiUrl(resource))
|
||||||
)
|
)
|
||||||
core.debug(`List Cache Response Status Code: ${response.statusCode}`)
|
if (response.statusCode === 200) {
|
||||||
if (response.statusCode !== 200) {
|
|
||||||
const cacheListResult = response.result
|
const cacheListResult = response.result
|
||||||
const totalCount = cacheListResult?.totalCount
|
const totalCount = cacheListResult?.totalCount
|
||||||
if (totalCount && totalCount > 0) {
|
if (totalCount && totalCount > 0) {
|
||||||
|
|
Loading…
Reference in New Issue