From df270c3e06aaced6d83f812623c285b8bad1a01a Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Tue, 20 May 2025 19:45:30 +0200 Subject: [PATCH] Asssembler content-source matching should not have exit code 1 when it does not match --- src/tooling/docs-assembler/Cli/ContentSourceCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tooling/docs-assembler/Cli/ContentSourceCommands.cs b/src/tooling/docs-assembler/Cli/ContentSourceCommands.cs index a791e5db0..0e357857d 100644 --- a/src/tooling/docs-assembler/Cli/ContentSourceCommands.cs +++ b/src/tooling/docs-assembler/Cli/ContentSourceCommands.cs @@ -57,7 +57,7 @@ public async Task Match([Argument] string? repository = null, [Argument] st var matches = assembleContext.Configuration.Match(repo, refName); if (matches == null) { - logger.LogInformation("'{Repository}' '{BranchOrTag}' combination not found in configuration.", repo, refName); + logger.LogError("'{Repository}' '{BranchOrTag}' combination not found in configuration.", repo, refName); await githubActionsService.SetOutputAsync("content-source-match", "false"); await githubActionsService.SetOutputAsync("content-source-name", ""); } @@ -71,7 +71,7 @@ public async Task Match([Argument] string? repository = null, [Argument] st } await collector.StopAsync(ctx); - return matches != null && collector.Errors == 0 ? 0 : 1; + return collector.Errors == 0 ? 0 : 1; } }