From b501c736ed1c2d1180b3767ec70e496c2306f827 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 4 Nov 2026 12:49:19 -0800 Subject: [PATCH 1/4] Update action.yml inputs and descriptions Removed some functions from the input description and added a new input for excluding include files. --- cleanrepo/action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cleanrepo/action.yml b/cleanrepo/action.yml index ee2826e8..756f7e4c 100644 --- a/cleanrepo/action.yml +++ b/cleanrepo/action.yml @@ -7,7 +7,7 @@ branding: color: 'purple' inputs: function: - description: 'The function you want to run: FindOrphanedArticles, FindOrphanedImages, FindOrphanedIncludes, FindOrphanedSnippets, CatalogImages, CatalogImagesWithText, FilterImagesForText, ReplaceRedirectTargets, ReplaceWithRelativeLinks, or RemoveRedirectHops.' + description: 'The function you want to run: FindOrphanedArticles, FindOrphanedImages, FindOrphanedIncludes, FindOrphanedSnippets, ReplaceRedirectTargets, ReplaceWithRelativeLinks, or RemoveRedirectHops.' required: true docfx_directory: description: 'The directory that contains the docfx.json file for the docset.' @@ -18,6 +18,9 @@ inputs: url_base_path: description: 'The URL base path for your docset, for example, /dotnet or /windows/uwp.' required: true + exclude_include_files: + description: 'A list of file names or paths that should never be considered orphaned.' + default: '' runs: using: docker image: ../cleanrepo.Dockerfile @@ -30,3 +33,5 @@ runs: - ${{ inputs.target_directory }} - '/Options:UrlBasePath' - ${{ inputs.url_base_path }} + - '/Options:ExcludeOrphanedIncludeFiles' + - ${{ inputs.exclude_include_files }} From 7cc4ca79032db957e4522b7d7bb616b01fa75dbd Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 4 Nov 2026 13:01:58 -0800 Subject: [PATCH 2/4] Update cleanrepo/action.yml --- cleanrepo/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cleanrepo/action.yml b/cleanrepo/action.yml index 756f7e4c..42b3f507 100644 --- a/cleanrepo/action.yml +++ b/cleanrepo/action.yml @@ -34,4 +34,4 @@ runs: - '/Options:UrlBasePath' - ${{ inputs.url_base_path }} - '/Options:ExcludeOrphanedIncludeFiles' - - ${{ inputs.exclude_include_files }} + - ${{ fromJSON(inputs.exclude_include_files) }} From 922100d9f2855c310c46969a59e1b9892f1dfe8a Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 4 Nov 2026 13:07:58 -0800 Subject: [PATCH 3/4] Apply suggestion from @gewarren --- cleanrepo/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cleanrepo/action.yml b/cleanrepo/action.yml index 42b3f507..3466fc49 100644 --- a/cleanrepo/action.yml +++ b/cleanrepo/action.yml @@ -20,7 +20,7 @@ inputs: required: true exclude_include_files: description: 'A list of file names or paths that should never be considered orphaned.' - default: '' + default: [] runs: using: docker image: ../cleanrepo.Dockerfile From 14c5fadc0dba43fc68b64f56355149b69099c69a Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 4 Nov 2026 13:15:52 -0800 Subject: [PATCH 4/4] Apply suggestion from @gewarren --- cleanrepo/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cleanrepo/action.yml b/cleanrepo/action.yml index 3466fc49..eede8492 100644 --- a/cleanrepo/action.yml +++ b/cleanrepo/action.yml @@ -20,7 +20,7 @@ inputs: required: true exclude_include_files: description: 'A list of file names or paths that should never be considered orphaned.' - default: [] + default: "[]" runs: using: docker image: ../cleanrepo.Dockerfile