1
0
Fork 0

Fix response code

pull/1268/head
Sampark Sharma 2022-12-16 05:55:53 +00:00 committed by GitHub
parent 24685611e2
commit b8c50aa82d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

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) {