Skip to content

Commit

Permalink
fix hanging when ci is used in up with watch patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
Milo123459 committed Dec 31, 2024
1 parent 6314dd5 commit 0c7deb9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/commands/up.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,13 @@ pub async fn command(args: Args, _json: bool) -> Result<()> {
// Always stream build logs
let build_deployment_id = deployment_id.clone();
let mut tasks = vec![tokio::task::spawn(async move {
if let Err(e) =
stream_build_logs(build_deployment_id, |log| println!("{}", log.message)).await
if let Err(e) = stream_build_logs(build_deployment_id, |log| {
println!("{}", log.message);
if args.ci && log.message.starts_with("No changed files matched patterns") {
std::process::exit(0);
}
})
.await
{
eprintln!("Failed to stream build logs: {}", e);

Expand Down

0 comments on commit 0c7deb9

Please sign in to comment.