mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-20 05:18:04 +08:00
Fix response code
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user