Skip to content

Commit b38f017

Browse files
authored
validate-inbound-local call docker image directly (#596)
* validate-inbound-local call docker image directly * ensure we can locally call commands on the docker image of assembler too * revert changes to github actions it pulls the right image
1 parent eae1c9c commit b38f017

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/preview-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ jobs:
133133
prefix: ${{ env.PATH_PREFIX }}
134134
strict: ${{ fromJSON(inputs.strict != '' && inputs.strict || 'true') }}
135135

136-
- uses: elastic/docs-builder/actions/validate-inbound-local@main
136+
- name: 'Validate Inbound Links'
137+
uses: elastic/docs-builder/actions/validate-inbound-local@main
137138
if: ${{ !cancelled() && (steps.deployment.outputs.result || (steps.check-files.outputs.any_changed == 'true' && github.event_name == 'merge_group')) }}
138139

139140
- uses: elastic/docs-builder/.github/actions/aws-auth@main

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)