Skip to content

Commit

Permalink
Fix DocsUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyAkinshin committed Jul 7, 2023
1 parent 210020d commit c5fd227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/BenchmarkDotNet.Build/ChangeLogBuilder.cs
Expand Up @@ -58,7 +58,7 @@ private async Task<string> Build()
{
var (currentVersion, previousVersion, lastCommit) = config;
if (string.IsNullOrEmpty(lastCommit))
lastCommit = currentVersion;
lastCommit = $"v{currentVersion}";

var client = new GitHubClient(new ProductHeaderValue(GitHubCredentials.ProductHeader));
var tokenAuth = new Credentials(GitHubCredentials.Token);
Expand Down Expand Up @@ -182,7 +182,7 @@ public static async Task Run(DirectoryPath path, string currentVersion, string p
{
var config = new Config(currentVersion, previousVersion, lastCommit);
var releaseNotes = await MarkdownBuilder.Build(config);
await File.WriteAllTextAsync(path.Combine(config.CurrentVersion + ".md").FullPath, releaseNotes);
await File.WriteAllTextAsync(path.Combine($"v{config.CurrentVersion}.md").FullPath, releaseNotes);
}
catch (Exception e)
{
Expand Down

0 comments on commit c5fd227

Please sign in to comment.