Skip to content

Commit

Permalink
Add annotation for Conflict during error path as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoverbear committed Feb 9, 2024
1 parent 6be1761 commit e2a221a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,12 @@ async fn push_new_release(
revision = release_metadata.revision
);
if error_if_release_conflicts {

if std::env::var("GITHUB_ACTIONS").is_ok() {
// Output a Github Actions annotation
println!("::error title=Conflict::{upload_name}/{rolling_prefix_or_tag} already exists");
}

return Err(Error::Conflict {
upload_name,
rolling_prefix_or_tag,
Expand Down

0 comments on commit e2a221a

Please sign in to comment.