Skip to content

Commit 4d3d026

Browse files
authored
Update and rename clean-repo.yml to orphaned-articles.yml
1 parent f006d6a commit 4d3d026

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

.github/workflows/clean-repo.yml renamed to .github/workflows/orphaned-articles.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,18 @@ jobs:
2626
# Call clean repo
2727
- name: Clean repo
2828
id: clean-repo-step
29-
uses: dotnet/docs-tools/cleanrepo@2a815a6c0976e888a49264f513dc230008b4a1f2
29+
uses: dotnet/docs-tools/cleanrepo@1c13adc87741beab84bb6e286d17b3b95ce687d8
3030
with:
31+
function: 'FindOrphanedArticles'
3132
docfx_directory: '.'
32-
articles_directory: 'docs'
33-
media_directory: 'docs'
34-
snippets_directory: '.' # This includes the ./samples and ./docs directories, which both contain snippets.
35-
includes_directory: 'includes'
33+
target_directory: 'docs'
3634
url_base_path: '/dotnet'
37-
delete: true
38-
orphaned_articles: true
39-
orphaned_images: true
40-
catalog_images: false
41-
orphaned_snippets: true
42-
orphaned_includes: true
43-
replace_redirects: true
44-
relative_links: true
45-
remove_hops: true
4635

4736
# Create the PR for the work done by the "clean repo" tool
4837
- name: create-pull-request
4938
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
5039
with:
5140
branch: create-cleanrepo-pull-request/patch
52-
title: "Monthly chores: Automated repo cleanup"
41+
title: "Monthly chores: Delete orphaned articles"
5342
commit-message: 'Bot 🤖 generated CleanRepo tool run'
54-
body: "Find and delete orphaned articles, images, snippets, and include files. Remove redirection hops, update redirected links in articles, and replace site-relative links with file-relative links. Contributes to #..."
43+
body: "Find and delete orphaned articles. Contributes to #..."

0 commit comments

Comments
 (0)