Skip to content

Commit ac95db1

Browse files
committed
Handle local checkouts (on CI's mainly)
1 parent 82b7899 commit ac95db1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Elastic.Markdown/IO/GitConfiguration.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public static GitConfiguration Create(IFileSystem fileSystem)
5050
remote = BranchTrackingRemote("main", config);
5151
if (string.IsNullOrEmpty(remote))
5252
remote = BranchTrackingRemote("master", config);
53-
53+
if (string.IsNullOrEmpty(remote))
54+
remote = Environment.GetEnvironmentVariable("GITHUB_REPOSITORY") ?? "elastic/docs-builder-unknown";
5455

5556
return new GitConfiguration { Ref = gitRef, Branch = branch, Remote = remote };
5657

0 commit comments

Comments
 (0)