Getting the value of 'GitHubPassword' dierctly from a property instead of harvesting from an environmental variable.

This commit is contained in:
John Beisner 2017-07-26 09:55:10 -07:00
parent d3d70afd8e
commit 15a318f131
2 changed files with 3 additions and 1 deletions

View file

@ -30,6 +30,7 @@
CommitHash="$(CommitHash)" />
<UpdateVersionsRepo BranchName="$(BranchName)"
GitHubPassword="$(GITHUB_PASSWORD)"
Condition=" '$(GITHUB_PASSWORD)' != '' " />
</Target>
</Project>

View file

@ -10,10 +10,11 @@ namespace Microsoft.DotNet.Cli.Build
{
[Required]
public string BranchName { get; set; }
public string GitHubPassword { get; set; }
public override bool Execute()
{
string githubAuthToken = EnvVars.EnsureVariable("GITHUB_PASSWORD");
string githubAuthToken = GitHubPassword;
string nupkgFilePath = Dirs.Packages;
string branchName = BranchName;
string versionsRepoPath = $"build-info/dotnet/cli/{branchName}/Latest";