diff --git a/crates/gh-workflow-tailcall/src/workflow.rs b/crates/gh-workflow-tailcall/src/workflow.rs index 0034e22..72ae43a 100644 --- a/crates/gh-workflow-tailcall/src/workflow.rs +++ b/crates/gh-workflow-tailcall/src/workflow.rs @@ -156,8 +156,8 @@ impl Workflow { fn workflow_cond(&self) -> Context { let is_main = Context::github().ref_().eq("refs/heads/main".into()); let is_push = Context::github().event_name().eq("push".into()); - let cond = is_main.and(is_push); - cond + + is_main.and(is_push) } fn workflow_event(&self) -> Event { diff --git a/crates/gh-workflow-tailcall/tests/ci.rs b/crates/gh-workflow-tailcall/tests/ci.rs index 4a7fa43..79b6838 100644 --- a/crates/gh-workflow-tailcall/tests/ci.rs +++ b/crates/gh-workflow-tailcall/tests/ci.rs @@ -2,5 +2,9 @@ use gh_workflow_tailcall::Workflow; #[test] fn generate() { - Workflow::default().auto_release(true).auto_fix(true).generate().unwrap(); + Workflow::default() + .auto_release(true) + .auto_fix(true) + .generate() + .unwrap(); }