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