xtask: Fix release changelog generation
The version title might exist after the "unreleased" title if the release failed after the changelog was updated
This commit is contained in:
parent
d37a9316bc
commit
93d8401d35
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user