mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Fix metrics.json path
This commit is contained in:
parent
c1cf2ef6f4
commit
8f99c93f0f
1 changed files with 7 additions and 3 deletions
|
@ -51,10 +51,14 @@ impl flags::Metrics {
|
||||||
"git clone --depth 1 https://{metrics_token}@github.com/rust-analyzer/metrics.git"
|
"git clone --depth 1 https://{metrics_token}@github.com/rust-analyzer/metrics.git"
|
||||||
)
|
)
|
||||||
.run()?;
|
.run()?;
|
||||||
let _d = sh.push_dir("metrics");
|
|
||||||
|
|
||||||
let mut file = fs::File::options().append(true).open("metrics.json")?;
|
{
|
||||||
|
let mut file =
|
||||||
|
fs::File::options().append(true).open("target/metrics/metrics.json")?;
|
||||||
writeln!(file, "{}", metrics.json())?;
|
writeln!(file, "{}", metrics.json())?;
|
||||||
|
}
|
||||||
|
|
||||||
|
let _d = sh.push_dir("metrics");
|
||||||
cmd!(sh, "git add .").run()?;
|
cmd!(sh, "git add .").run()?;
|
||||||
cmd!(sh, "git -c user.name=Bot -c user.email=dummy@example.com commit --message 📈")
|
cmd!(sh, "git -c user.name=Bot -c user.email=dummy@example.com commit --message 📈")
|
||||||
.run()?;
|
.run()?;
|
||||||
|
|
Loading…
Reference in a new issue