Merge pull request #914 from MaaAssistantArknights/dev

fix. 修复 CI 的一堆问题
This commit is contained in:
Alisa
2022-06-18 04:34:13 +08:00
committed by GitHub

View File

@@ -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}");