xtask: Don't update changelog when version is set
This commit is contained in:
parent
c647d39c9e
commit
4d04ef614f
@ -96,10 +96,13 @@ impl Package {
|
|||||||
..self.version.clone()
|
..self.version.clone()
|
||||||
};
|
};
|
||||||
|
|
||||||
if !changelog.starts_with(&format!("# {}\n", version))
|
let update = if !changelog.starts_with(&format!("# {}\n", version)) {
|
||||||
&& !changelog.starts_with(&format!("# {} (unreleased)\n", version))
|
false
|
||||||
&& !changelog.starts_with("# [unreleased]\n")
|
} else if changelog.starts_with(&format!("# {} (unreleased)\n", version))
|
||||||
|
|| !changelog.starts_with("# [unreleased]\n")
|
||||||
{
|
{
|
||||||
|
update
|
||||||
|
} else {
|
||||||
return Err("Could not find version title in changelog".into());
|
return Err("Could not find version title in changelog".into());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user