diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 04543dd4e..2b6d63d6c 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -133,7 +133,8 @@ jobs: prefix: ${{ env.PATH_PREFIX }} strict: ${{ fromJSON(inputs.strict != '' && inputs.strict || 'true') }} - - uses: elastic/docs-builder/actions/validate-inbound-local@main + - name: 'Validate Inbound Links' + uses: elastic/docs-builder/actions/validate-inbound-local@main if: ${{ !cancelled() && (steps.deployment.outputs.result || (steps.check-files.outputs.any_changed == 'true' && github.event_name == 'merge_group')) }} - uses: elastic/docs-builder/.github/actions/aws-auth@main diff --git a/src/Elastic.Markdown/IO/Discovery/GitCheckoutInformation.cs b/src/Elastic.Markdown/IO/Discovery/GitCheckoutInformation.cs index 548d561d1..c940b5bfa 100644 --- a/src/Elastic.Markdown/IO/Discovery/GitCheckoutInformation.cs +++ b/src/Elastic.Markdown/IO/Discovery/GitCheckoutInformation.cs @@ -84,6 +84,8 @@ public static GitCheckoutInformation Create(IDirectoryInfo source, IFileSystem f remote = "elastic/docs-builder-unknown"; remote = remote.AsSpan().TrimEnd("git").TrimEnd('.').ToString(); + if (remote.EndsWith("docs-conten")) + remote += "t"; return new GitCheckoutInformation { diff --git a/src/docs-assembler/Program.cs b/src/docs-assembler/Program.cs index e0fc87bca..afd775857 100644 --- a/src/docs-assembler/Program.cs +++ b/src/docs-assembler/Program.cs @@ -25,7 +25,7 @@ app.Add("repo"); var githubActions = ConsoleApp.ServiceProvider.GetService(); -var command = githubActions?.GetInput("COMMAND"); +var command = githubActions?.GetInput("COMMAND") ?? Environment.GetEnvironmentVariable("INPUT_COMMAND"); if (!string.IsNullOrEmpty(command)) args = command.Split(' ');