Skip to content

Commit

Permalink
make tag name more robust, not just matching on strict "nightly" but …
Browse files Browse the repository at this point in the history
…containing nightly
  • Loading branch information
zerosnacks committed Jan 21, 2025
1 parent d586ea6 commit 8b2db9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/common/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn main() -> Result<(), Box<dyn Error>> {
// if not on a tag: <BIN> 0.3.0-dev+ba03de0019.1737036656.debug
// if on a tag: <BIN> 0.3.0-stable+ba03de0019.1737036656.release
let tag_name = env::var("TAG_NAME").unwrap_or_else(|_| String::from("dev"));
let (is_nightly, version_suffix) = if tag_name == "nightly" {
let (is_nightly, version_suffix) = if tag_name.contains("nightly") {
(true, "-nightly".to_string())
} else {
(false, format!("-{tag_name}"))
Expand Down

0 comments on commit 8b2db9a

Please sign in to comment.