Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Pipeline/Build.Benchmarks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ async Task<BenchmarkFile> DownloadBenchmarkFile(string filename)
}

using JsonDocument document = JsonDocument.Parse(responseContent);
string content = Base64Decode(document.RootElement.GetProperty("content").GetString());
var contentStream = await client.GetStreamAsync(
$"https://raw.githubusercontent.com/aweXpect/aweXpect/refs/heads/{BenchmarkBranch}/Docs/pages/static/js/{filename}");
using StreamReader reader = new(contentStream, Encoding.UTF8);
string content = reader.ReadToEnd();
Comment thread
vbreuss marked this conversation as resolved.
Outdated
string sha = document.RootElement.GetProperty("sha").GetString();
Comment thread
vbreuss marked this conversation as resolved.
return new BenchmarkFile(content, sha);
}
Expand Down
Loading