Getting the value of 'GitHubPassword' dierctly from a property instead of harvesting from an environmental variable.
This commit is contained in:
parent
d3d70afd8e
commit
15a318f131
2 changed files with 3 additions and 1 deletions
|
@ -30,6 +30,7 @@
|
|||
CommitHash="$(CommitHash)" />
|
||||
|
||||
<UpdateVersionsRepo BranchName="$(BranchName)"
|
||||
GitHubPassword="$(GITHUB_PASSWORD)"
|
||||
Condition=" '$(GITHUB_PASSWORD)' != '' " />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue