From 37cbc601b9f54e802f1f89c1e2b9ee870d5572f4 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 13 Mar 2022 21:50:34 +0000 Subject: [PATCH] Fix pre-release publishing --- examples/ci.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ci.rs b/examples/ci.rs index a461dac..799b288 100644 --- a/examples/ci.rs +++ b/examples/ci.rs @@ -59,7 +59,7 @@ fn publish(sh: &Shell) -> Result<()> { let tag = format!("v{}", version); let tags = cmd!(sh, "git tag --list").read()?; - let tag_exists = tags.contains(&tag); + let tag_exists = tags.split_ascii_whitespace().any(|it| it == &tag); let current_branch = cmd!(sh, "git branch --show-current").read()?;