Skip to content

Commit 4f9ca60

Browse files
committed
allow docs-builder to have local checkout folder on CI
1 parent 05cc209 commit 4f9ca60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tooling/docs-assembler/Sourcing/RepositorySourcesFetcher.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public CheckoutResult GetAll()
3535
foreach (var repo in repositories.Values)
3636
{
3737
var checkoutFolder = fs.DirectoryInfo.New(Path.Combine(context.CheckoutDirectory.FullName, repo.Name));
38-
// if we are running locally, allow for repository path override
39-
if (string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("CI")) && !string.IsNullOrWhiteSpace(repo.Path))
38+
// if we are running locally, always allow repository path overrides. Otherwise, only for docs-builder.
39+
if (!string.IsNullOrWhiteSpace(repo.Path) && (string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("CI")) || repo.Name == "docs-builder"))
4040
{
4141
_logger.LogInformation("{RepositoryName}: Using local override path for {RepositoryName} at {Path}", repo.Name, repo.Name, repo.Path);
4242
checkoutFolder = fs.DirectoryInfo.New(repo.Path);

0 commit comments

Comments
 (0)