Skip to content

Commit 13242b1

Browse files
authored
Asssembler content-source matching should not have exit code 1 when it does not match (#1284)
1 parent 362f9fd commit 13242b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tooling/docs-assembler/Cli/ContentSourceCommands.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public async Task<int> Match([Argument] string? repository = null, [Argument] st
5757
var matches = assembleContext.Configuration.Match(repo, refName);
5858
if (matches == null)
5959
{
60-
logger.LogInformation("'{Repository}' '{BranchOrTag}' combination not found in configuration.", repo, refName);
60+
logger.LogError("'{Repository}' '{BranchOrTag}' combination not found in configuration.", repo, refName);
6161
await githubActionsService.SetOutputAsync("content-source-match", "false");
6262
await githubActionsService.SetOutputAsync("content-source-name", "");
6363
}
@@ -71,7 +71,7 @@ public async Task<int> Match([Argument] string? repository = null, [Argument] st
7171
}
7272

7373
await collector.StopAsync(ctx);
74-
return matches != null && collector.Errors == 0 ? 0 : 1;
74+
return collector.Errors == 0 ? 0 : 1;
7575
}
7676

7777
}

0 commit comments

Comments
 (0)