Fix UpdateVersionsRepo to pass file paths instead of a directory
This commit is contained in:
parent
21471aa956
commit
21080fc5be
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
using Microsoft.Build.Framework;
|
using Microsoft.Build.Framework;
|
||||||
using Microsoft.Build.Utilities;
|
using Microsoft.Build.Utilities;
|
||||||
using Microsoft.DotNet.VersionTools.Automation;
|
using Microsoft.DotNet.VersionTools.Automation;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
namespace Microsoft.DotNet.Cli.Build
|
namespace Microsoft.DotNet.Cli.Build
|
||||||
{
|
{
|
||||||
|
@ -25,7 +26,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
GitHubAuth auth = new GitHubAuth(GitHubPassword);
|
GitHubAuth auth = new GitHubAuth(GitHubPassword);
|
||||||
GitHubVersionsRepoUpdater repoUpdater = new GitHubVersionsRepoUpdater(auth);
|
GitHubVersionsRepoUpdater repoUpdater = new GitHubVersionsRepoUpdater(auth);
|
||||||
repoUpdater.UpdateBuildInfoAsync(
|
repoUpdater.UpdateBuildInfoAsync(
|
||||||
new [] { PackagesDirectory },
|
Directory.GetFiles(PackagesDirectory, "*.nupkg"),
|
||||||
versionsRepoPath).Wait();
|
versionsRepoPath).Wait();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue