mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 05:27:36 +00:00
Merge #11727
11727: minor: Fix metrics.json path r=lnicola a=lnicola CC https://github.com/rust-analyzer/rust-analyzer/pull/11724#issuecomment-1069047929 Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
commit
29e38513cd
@ -51,10 +51,14 @@ impl flags::Metrics {
|
||||
"git clone --depth 1 https://{metrics_token}@github.com/rust-analyzer/metrics.git"
|
||||
)
|
||||
.run()?;
|
||||
let _d = sh.push_dir("metrics");
|
||||
|
||||
let mut file = fs::File::options().append(true).open("metrics.json")?;
|
||||
writeln!(file, "{}", metrics.json())?;
|
||||
{
|
||||
let mut file =
|
||||
fs::File::options().append(true).open("target/metrics/metrics.json")?;
|
||||
writeln!(file, "{}", metrics.json())?;
|
||||
}
|
||||
|
||||
let _d = sh.push_dir("metrics");
|
||||
cmd!(sh, "git add .").run()?;
|
||||
cmd!(sh, "git -c user.name=Bot -c user.email=dummy@example.com commit --message 📈")
|
||||
.run()?;
|
||||
|
Loading…
Reference in New Issue
Block a user