Skip to content

Commit 8e839f1

Browse files
fix: http 404 status causes release cicd pipeline failure (#1189)
Signed-off-by: Harikrishnan Balagopal <[email protected]>
1 parent c469c6c commit 8e839f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ jobs:
116116
core.info(`the tag ${tag} already exists on ${resp.data.object.type} ${resp.data.object.sha}`);
117117
} catch(err) {
118118
core.info('DEBUG 4 an error occurred while checking if the tag exists');
119-
core.info(`DEBUG 5 err.status ${err.status}`);
120-
if(err.status !== 404){
119+
core.info(`DEBUG 5 err.status: ${typeof(err.status)} ${err.status}`);
120+
if(err.status !== 404 && err.status !== '404'){
121121
throw err;
122122
}
123123
core.info('DEBUG 6 the tag does not exist');

0 commit comments

Comments
 (0)