From 8e839f1a2cc188b6c6e0711485a98875c314d95c Mon Sep 17 00:00:00 2001 From: Hari Date: Mon, 22 Jul 2024 20:34:44 +0530 Subject: [PATCH] fix: http 404 status causes release cicd pipeline failure (#1189) Signed-off-by: Harikrishnan Balagopal --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f5a80c5c..1f5b2d63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -116,8 +116,8 @@ jobs: core.info(`the tag ${tag} already exists on ${resp.data.object.type} ${resp.data.object.sha}`); } catch(err) { core.info('DEBUG 4 an error occurred while checking if the tag exists'); - core.info(`DEBUG 5 err.status ${err.status}`); - if(err.status !== 404){ + core.info(`DEBUG 5 err.status: ${typeof(err.status)} ${err.status}`); + if(err.status !== 404 && err.status !== '404'){ throw err; } core.info('DEBUG 6 the tag does not exist');