Skip to content

Commit 2429a73

Browse files
committed
send command to docs-builder
1 parent 54a5c8c commit 2429a73

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tooling/docs-builder/Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using System.Diagnostics.CodeAnalysis;
66
using Actions.Core.Extensions;
7+
using Actions.Core.Services;
78
using ConsoleAppFramework;
89
using Documentation.Builder.Cli;
910
using Elastic.Documentation.Diagnostics;
@@ -35,6 +36,11 @@
3536
app.Add<InboundLinkCommands>("inbound-links");
3637
app.Add<DiffCommands>("diff");
3738

39+
var githubActions = ConsoleApp.ServiceProvider!.GetService<ICoreService>();
40+
var command = githubActions?.GetInput("COMMAND");
41+
if (!string.IsNullOrEmpty(command))
42+
args = command.Split(' ');
43+
3844
await app.RunAsync(args).ConfigureAwait(false);
3945

4046

0 commit comments

Comments
 (0)