xtask: Fix release changelog generation
The version title might exist after the "unreleased" title if the
release failed after the changelog was updated
@@ -96,7 +96,7 @@ impl Package {
..self.version.clone()
};
- let update = if changelog.starts_with(&format!("# {version}\n")) {
+ let update = if changelog.contains(&format!("# {version}\n")) {
false
} else if changelog.starts_with(&format!("# {version} (unreleased)\n"))
|| changelog.starts_with("# [unreleased]\n")
