Fix response code

This commit is contained in:
Sampark Sharma authored and GitHub committed 2022-12-16 05:55:53 +00:00
1 parent afe51325f8
commit 752089c1c4
1 file changed
+1 -2
+1 -2
View File
@@ -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) {