Skip to content

Commit

Permalink
feat: Exit 107 on post-release hook fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Person-93 committed Mar 31, 2022
1 parent fc4f117 commit 811dd46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,8 @@ fn release_packages<'m>(
// we use dry_run environmental variable to run the script
// so here we set dry_run=false and always execute the command.
if !cmd::call_with_env(post_rel_hook, envs, cwd, false)? {
todo!("handle non-zero exit from post-release hook")
log::error!("Post release hook failed. Aborting. CHANGES NOT ROLLED BACK.",);
return Ok(107);
}
}
}
Expand Down

0 comments on commit 811dd46

Please sign in to comment.