Skip to content

Commit

Permalink
Move git config to after cd into homebrew repo
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
  • Loading branch information
jszwedko committed Apr 12, 2023
1 parent 7282da2 commit d012d63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vdev/src/commands/release/homebrew.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ impl Cli {
let td = TempDir::new()?;
env::set_current_dir(td.path())?;

// Set git configurations
git::set_config_value("user.name", "vic")?;
git::set_config_value("user.email", "vector@datadoghq.com")?;

let github_token = env::var("GITHUB_TOKEN")?;

// Clone the homebrew-brew repository
Expand All @@ -31,6 +27,10 @@ impl Cli {
git::clone(&homebrew_repo)?;
env::set_current_dir("homebrew-brew")?;

// Set git configurations
git::set_config_value("user.name", "vic")?;
git::set_config_value("user.email", "vector@datadoghq.com")?;

// Get package details for updating Formula/vector.rb
let vector_version = env::var("VECTOR_VERSION")?;
let package_url = format!("https://packages.timber.io/vector/{vector_version}/vector-{vector_version}-x86_64-apple-darwin.tar.gz");
Expand Down

0 comments on commit d012d63

Please sign in to comment.