From 2d48b523c31a48feef330673baf05a6d93e7e6ad Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 22 Dec 2024 12:24:21 +0100 Subject: [PATCH] fix: release action like main and pr Signed-off-by: kjuulh --- crates/cuddle-ci/src/cli.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/cuddle-ci/src/cli.rs b/crates/cuddle-ci/src/cli.rs index c0ac090..cabb523 100644 --- a/crates/cuddle-ci/src/cli.rs +++ b/crates/cuddle-ci/src/cli.rs @@ -63,8 +63,12 @@ impl CuddleCI { self } - pub fn with_release(&mut self, release: Box) -> &mut Self { - self.release_action.push(release); + pub fn with_release(&mut self, release: &T) -> &mut Self + where + T: ReleaseAction + Send + Sync + 'static, + T: ToOwned, + { + self.release_action.push(Box::new(release.to_owned())); self }