diff --git a/tools/MaaBuilder/Build.cs b/tools/MaaBuilder/Build.cs index 33a475b92f..627e0148fa 100644 --- a/tools/MaaBuilder/Build.cs +++ b/tools/MaaBuilder/Build.cs @@ -352,7 +352,7 @@ public partial class Build : NukeBuild } else { - _changeLog += $"\n\n**Full Changelog**: [{Parameters.MainRepo}@{_latestTag} -> {Parameters.MainRepo}@{Parameters.GhTag}]https://github.com/{Parameters.MainRepo}/compare/{_latestTag}...{Parameters.GhTag}"; + _changeLog += $"\n\n**Full Changelog**: [{Parameters.MainRepo}@{_latestTag} -> {Parameters.MainRepo}@{Parameters.GhTag}](https://github.com/{Parameters.MainRepo}/compare/{_latestTag}...{Parameters.GhTag})"; } }); @@ -402,6 +402,14 @@ public partial class Build : NukeBuild return; } + if (GitHubTasks.GitHubClient is null) + { + GitHubTasks.GitHubClient = new GitHubClient(new ProductHeaderValue(nameof(NukeBuild))) + { + Credentials = new Credentials(Parameters.GitHubPersonalAccessToken) + }; + } + if (Parameters.GhActionName == ActionConfiguration.ReleaseMaa) { Information($"运行 ReleaseMaa 将在 {Parameters.MainRepo} 创建 Release {Parameters.GhTag}");