Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 15a318f

Browse files
author
John Beisner
committed
Getting the value of 'GitHubPassword' dierctly from a property instead of harvesting from an environmental variable.
1 parent d3d70af commit 15a318f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build/publish/FinishBuild.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
CommitHash="$(CommitHash)" />
3131

3232
<UpdateVersionsRepo BranchName="$(BranchName)"
33+
GitHubPassword="$(GITHUB_PASSWORD)"
3334
Condition=" '$(GITHUB_PASSWORD)' != '' " />
3435
</Target>
3536
</Project>

build_projects/dotnet-cli-build/UpdateVersionsRepo.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ public class UpdateVersionsRepo : Task
1010
{
1111
[Required]
1212
public string BranchName { get; set; }
13+
public string GitHubPassword { get; set; }
1314

1415
public override bool Execute()
1516
{
16-
string githubAuthToken = EnvVars.EnsureVariable("GITHUB_PASSWORD");
17+
string githubAuthToken = GitHubPassword;
1718
string nupkgFilePath = Dirs.Packages;
1819
string branchName = BranchName;
1920
string versionsRepoPath = $"build-info/dotnet/cli/{branchName}/Latest";

0 commit comments

Comments
 (0)