Skip to content

Commit

Permalink
Test multiple releases per day
Browse files Browse the repository at this point in the history
  • Loading branch information
ysaito1001 committed Oct 16, 2024
1 parent 980c499 commit cb19b31
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
11 changes: 11 additions & 0 deletions tools/ci-build/changelogger/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/ci-build/changelogger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ serde = { version = "1", features = ["derive"]}
serde_json = "1"
serde_yaml = "0.9"
smithy-rs-tool-common = { path = "../smithy-rs-tool-common" }
time = { version = "0.3.9", features = ["local-offset"]}
time = { version = "0.3.9", features = ["local-offset", "macros"]}
toml = "0.5.8"

[dev-dependencies]
Expand Down
5 changes: 4 additions & 1 deletion tools/ci-build/changelogger/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use std::env;
use std::fmt::Write;
use std::fs;
use std::path::{Path, PathBuf};
use time::macros::datetime;
use time::OffsetDateTime;

pub const EXAMPLE_ENTRY: &str = r#"# Example changelog entry, Markdown with YAML front matter
Expand Down Expand Up @@ -91,7 +92,9 @@ pub struct RenderArgs {
}

pub fn subcommand_render(args: &RenderArgs) -> Result<()> {
let now = args.date_override.unwrap_or_else(OffsetDateTime::now_utc);
let now = args
.date_override
.unwrap_or_else(|| datetime!(2024-10-09 0:00 UTC));

let current_dir = env::current_dir()?;
let repo_root: PathBuf = find_git_repository_root(
Expand Down

0 comments on commit cb19b31

Please sign in to comment.