Skip to content

Commit d438ed6

Browse files
committed
ensure we can locally call commands on the docker image of assembler too
1 parent 4cd5d10 commit d438ed6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Elastic.Markdown/IO/Discovery/GitCheckoutInformation.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ public static GitCheckoutInformation Create(IDirectoryInfo source, IFileSystem f
8484
remote = "elastic/docs-builder-unknown";
8585

8686
remote = remote.AsSpan().TrimEnd("git").TrimEnd('.').ToString();
87+
if (remote.EndsWith("docs-conten"))
88+
remote += "t";
8789

8890
return new GitCheckoutInformation
8991
{

src/docs-assembler/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
app.Add<RepositoryCommands>("repo");
2626

2727
var githubActions = ConsoleApp.ServiceProvider.GetService<ICoreService>();
28-
var command = githubActions?.GetInput("COMMAND");
28+
var command = githubActions?.GetInput("COMMAND") ?? Environment.GetEnvironmentVariable("INPUT_COMMAND");
2929
if (!string.IsNullOrEmpty(command))
3030
args = command.Split(' ');
3131

0 commit comments

Comments
 (0)