Skip to content

Commit

Permalink
Only set to non interactive mode when not already set
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Aug 9, 2023
1 parent fc378fb commit 84b6414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl PublishOpt {

/// Set to non interactive mode if we're running on CI
pub fn non_interactive_on_ci(&mut self) {
if env::var("CI").map(|v| v == "true").unwrap_or_default() {
if !self.non_interactive && env::var("CI").map(|v| v == "true").unwrap_or_default() {
eprintln!("🎛️ Running in non-interactive mode on CI");
self.non_interactive = true;
}
Expand Down

0 comments on commit 84b6414

Please sign in to comment.