From b876452631d63565a298d448e6e4112486193e3c Mon Sep 17 00:00:00 2001 From: Liam Sho Date: Sat, 18 Jun 2022 04:30:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix.=E4=BF=AE=E5=A4=8D=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=8F=91=E5=B8=83=20CI=20=E7=88=86=E7=82=B8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/MaaBuilder/Build.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/MaaBuilder/Build.cs b/tools/MaaBuilder/Build.cs index 33a475b92f..7ca53ff28a 100644 --- a/tools/MaaBuilder/Build.cs +++ b/tools/MaaBuilder/Build.cs @@ -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}"); From 2da819cb299f3b0dc25f92ad962ea4a43bde3f50 Mon Sep 17 00:00:00 2001 From: Liam Sho Date: Sat, 18 Jun 2022 04:33:12 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix.=E4=BF=AE=E5=A4=8D=20Markdown=20?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E6=A0=BC=E5=BC=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/MaaBuilder/Build.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/MaaBuilder/Build.cs b/tools/MaaBuilder/Build.cs index 7ca53ff28a..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})"; } });