Skip to content

Commit

Permalink
Fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jericho committed Oct 5, 2020
1 parent 51f91fd commit 9a88f06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var versionInfo = GitVersion(new GitVersionSettings() { OutputType = GitVersionO
var cakeVersion = typeof(ICakeContext).Assembly.GetName().Version.ToString();
var isLocalBuild = BuildSystem.IsLocalBuild;
var isMainBranch = StringComparer.OrdinalIgnoreCase.Equals("main", BuildSystem.AppVeyor.Environment.Repository.Branch);
var isMainRepo = StringComparer.OrdinalIgnoreCase.Equals($"{gitHubRepoOwner}/{gitHubRepo}", BuildSystem.AppVeyor.Environment.Repository.Name);
var isMainRepo = StringComparer.OrdinalIgnoreCase.Equals($"{gitHubUserName}/{gitHubRepo}", BuildSystem.AppVeyor.Environment.Repository.Name);
var isPullRequest = BuildSystem.AppVeyor.Environment.PullRequest.IsPullRequest;
var isTagged = (
BuildSystem.AppVeyor.Environment.Repository.Tag.IsTag &&
Expand Down Expand Up @@ -70,7 +70,7 @@ Setup(context =>
if (!string.IsNullOrEmpty(gitHubToken))
{
Information("GitHub Info:\r\n\tRepo: {0}\r\n\tUserName: {1}\r\n\tToken: {2}",
gitHubRepo",
gitHubRepo,
gitHubUserName,
new string('*', gitHubToken.Length)
);
Expand Down

0 comments on commit 9a88f06

Please sign in to comment.