Skip to content

Commit b787904

Browse files
Refactor clean repo workflow for ATADocs
Updated the workflow to clean orphaned articles, images, includes, and snippets in the ATADocs directory.
1 parent 9bf137d commit b787904

File tree

1 file changed

+33
-6
lines changed

1 file changed

+33
-6
lines changed

.github/workflows/cleanrepo.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: "clean repo - articles"
1+
2+
name: "clean repo - ATADocs"
23

34
on:
45
schedule:
@@ -19,14 +20,40 @@ jobs:
1920

2021
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2122

22-
# Call clean repo
23-
- name: Clean repo
24-
id: clean-repo-step
23+
# Find orphaned articles
24+
- name: Clean repo - orphaned articles
2525
uses: dotnet/docs-tools/cleanrepo@main
2626
with:
2727
function: "FindOrphanedArticles"
28-
docfx_directory: "."
29-
target_directory: "defender"
28+
docfx_directory: "ATADocs"
29+
target_directory: "ATADocs"
30+
url_base_path: "/dotnet"
31+
32+
# Find orphaned images
33+
- name: Clean repo - orphaned images
34+
uses: dotnet/docs-tools/cleanrepo@main
35+
with:
36+
function: "FindOrphanedImages"
37+
docfx_directory: "ATADocs"
38+
target_directory: "ATADocs"
39+
url_base_path: "/dotnet"
40+
41+
# Find orphaned includes
42+
- name: Clean repo - orphaned includes
43+
uses: dotnet/docs-tools/cleanrepo@main
44+
with:
45+
function: "FindOrphanedIncludes"
46+
docfx_directory: "ATADocs"
47+
target_directory: "ATADocs"
48+
url_base_path: "/dotnet"
49+
50+
# Find orphaned snippets
51+
- name: Clean repo - orphaned snippets
52+
uses: dotnet/docs-tools/cleanrepo@main
53+
with:
54+
function: "FindOrphanedSnippets"
55+
docfx_directory: "ATADocs"
56+
target_directory: "ATADocs"
3057
url_base_path: "/dotnet"
3158

3259
# Create the PR for the work done by the "clean repo" tool

0 commit comments

Comments
 (0)