Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions actions/assembler-match/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ inputs:
outputs:
content-source-match:
description: 'true/false indicating the branch matches a content-source'
content-source-name:
description: "The name of the content source that matches (current/next) or empty"
content-source-next:
description: "true/false indicating the branch acts as the next content source"
content-source-current:
Expand Down
7 changes: 2 additions & 5 deletions src/tooling/docs-assembler/Cli/ContentSourceCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public async Task<int> Match([Argument] string? repository = null, [Argument] st
{
logger.LogInformation("'{Repository}' '{BranchOrTag}' combination not found in configuration.", repo, refName);
await githubActionsService.SetOutputAsync("content-source-match", "false");
await githubActionsService.SetOutputAsync("content-source-name", "");
await githubActionsService.SetOutputAsync("content-source-next", "false");
await githubActionsService.SetOutputAsync("content-source-current", "false");
}
else
{
Expand All @@ -71,10 +72,6 @@ public async Task<int> Match([Argument] string? repository = null, [Argument] st
await githubActionsService.SetOutputAsync("content-source-match", "true");
await githubActionsService.SetOutputAsync("content-source-next", matches.Next is not null ? "true" : "false");
await githubActionsService.SetOutputAsync("content-source-current", matches.Current is not null ? "true" : "false");

//TODO remove once we've merged our changes to the github action and its workflow usage to no longer use this output
var name = (matches.Current ?? matches.Next)!.Value.ToStringFast(true);
await githubActionsService.SetOutputAsync("content-source-name", name);
}

await collector.StopAsync(ctx);
Expand Down
Loading