mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-21 17:09:05 +08:00
Fix response code
This commit is contained in:
parent
24685611e2
commit
b8c50aa82d
@ -136,8 +136,7 @@ async function listCache(
|
||||
const response = await retryTypedResponse('listCache', async () =>
|
||||
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 totalCount = cacheListResult?.totalCount
|
||||
if (totalCount && totalCount > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user