Skip to content

Commit 6a8201c

Browse files
committed
Output redirects_artifact_path during build-all
1 parent e2234fd commit 6a8201c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ public async Task<int> BuildAll(
136136

137137
await cloner.WriteLinkRegistrySnapshot(checkoutResult.LinkRegistrySnapshot, ctx);
138138

139+
var redirectsPath = Path.Combine(assembleContext.OutputDirectory.FullName, "redirects.json");
140+
if (File.Exists(redirectsPath))
141+
await githubActionsService.SetOutputAsync("redirects_artifact_path", redirectsPath);
142+
139143
var sitemapBuilder = new SitemapBuilder(navigation.NavigationItems, assembleContext.WriteFileSystem, assembleContext.OutputDirectory);
140144
sitemapBuilder.Generate();
141145

0 commit comments

Comments
 (0)