Skip to content

Commit

Permalink
fix: http 404 status causes release cicd pipeline failure (#1189)
Browse files Browse the repository at this point in the history
Signed-off-by: Harikrishnan Balagopal <harikrishmenon@gmail.com>
  • Loading branch information
HarikrishnanBalagopal authored Jul 22, 2024
1 parent c469c6c commit 8e839f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 8e839f1

Please sign in to comment.