Skip to content

Commit b982035

Browse files
authored
Assembler match: remove name output (#1288)
1 parent 159b5e2 commit b982035

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

actions/assembler-match/action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ inputs:
1616
outputs:
1717
content-source-match:
1818
description: 'true/false indicating the branch matches a content-source'
19-
content-source-name:
20-
description: "The name of the content source that matches (current/next) or empty"
2119
content-source-next:
2220
description: "true/false indicating the branch acts as the next content source"
2321
content-source-current:

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public async Task<int> Match([Argument] string? repository = null, [Argument] st
5959
{
6060
logger.LogInformation("'{Repository}' '{BranchOrTag}' combination not found in configuration.", repo, refName);
6161
await githubActionsService.SetOutputAsync("content-source-match", "false");
62-
await githubActionsService.SetOutputAsync("content-source-name", "");
62+
await githubActionsService.SetOutputAsync("content-source-next", "false");
63+
await githubActionsService.SetOutputAsync("content-source-current", "false");
6364
}
6465
else
6566
{
@@ -71,10 +72,6 @@ public async Task<int> Match([Argument] string? repository = null, [Argument] st
7172
await githubActionsService.SetOutputAsync("content-source-match", "true");
7273
await githubActionsService.SetOutputAsync("content-source-next", matches.Next is not null ? "true" : "false");
7374
await githubActionsService.SetOutputAsync("content-source-current", matches.Current is not null ? "true" : "false");
74-
75-
//TODO remove once we've merged our changes to the github action and its workflow usage to no longer use this output
76-
var name = (matches.Current ?? matches.Next)!.Value.ToStringFast(true);
77-
await githubActionsService.SetOutputAsync("content-source-name", name);
7875
}
7976

8077
await collector.StopAsync(ctx);

0 commit comments

Comments
 (0)