Skip to content

Commit f221c66

Browse files
committed
don't check changelog on pre-releases
1 parent 56fc770 commit f221c66

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

xtask/src/main.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ fn main() -> color_eyre::Result<()> {
5656
let change_log =
5757
std::fs::read_to_string(get_cargo_workspace().join("CHANGELOG.md"))?;
5858

59-
color_eyre::eyre::ensure!(
60-
change_log.contains(&format!("## [{tag}] -")),
61-
"change log is not updated"
62-
);
59+
if !tag.contains('-') {
60+
color_eyre::eyre::ensure!(
61+
change_log.contains(&format!("## [{tag}] -")),
62+
"change log is not updated"
63+
);
64+
}
6365

6466
if dry_run {
6567
eprintln!("{}", cmd!(sh, "git tag {tag}"));

0 commit comments

Comments
 (0)