|
1 |
| - |
2 |
| -name: "clean repo - ATADocs" |
| 1 | +name: "Clean Repo" |
3 | 2 |
|
4 | 3 | on:
|
5 | 4 | schedule:
|
6 |
| - - cron: "0 1 1 * *" # Runs at 01:00, on day 1 of the month |
| 5 | + - cron: "0 1 1 * *" |
7 | 6 | workflow_dispatch:
|
8 | 7 |
|
9 | 8 | permissions:
|
10 |
| - contents: read |
| 9 | + contents: write |
| 10 | + pull-requests: write |
11 | 11 |
|
12 | 12 | jobs:
|
13 | 13 | clean-repo:
|
14 | 14 | runs-on: ubuntu-latest
|
15 |
| - permissions: |
16 |
| - contents: write |
17 |
| - pull-requests: write |
18 | 15 |
|
19 | 16 | steps:
|
| 17 | + - uses: actions/checkout@v5 |
20 | 18 |
|
21 |
| - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
22 |
| - |
23 |
| - # Find orphaned articles |
24 |
| - - name: Clean repo - orphaned articles |
| 19 | + - name: Clean orphaned articles |
25 | 20 | uses: dotnet/docs-tools/cleanrepo@main
|
26 | 21 | with:
|
27 | 22 | function: "FindOrphanedArticles"
|
28 |
| - docfx_directory: "ATADocs" |
29 |
| - target_directory: "ATADocs" |
| 23 | + docfx_directory: "." |
| 24 | + target_directory: "." |
30 | 25 | url_base_path: "/dotnet"
|
31 | 26 |
|
32 |
| - # Find orphaned images |
33 |
| - - name: Clean repo - orphaned images |
| 27 | + - name: Clean orphaned images |
34 | 28 | uses: dotnet/docs-tools/cleanrepo@main
|
35 | 29 | with:
|
36 | 30 | function: "FindOrphanedImages"
|
37 |
| - docfx_directory: "ATADocs" |
38 |
| - target_directory: "ATADocs" |
| 31 | + docfx_directory: "." |
| 32 | + target_directory: "." |
39 | 33 | url_base_path: "/dotnet"
|
40 | 34 |
|
41 |
| - # Find orphaned includes |
42 |
| - - name: Clean repo - orphaned includes |
| 35 | + - name: Clean orphaned includes |
43 | 36 | uses: dotnet/docs-tools/cleanrepo@main
|
44 | 37 | with:
|
45 | 38 | function: "FindOrphanedIncludes"
|
46 |
| - docfx_directory: "ATADocs" |
47 |
| - target_directory: "ATADocs" |
| 39 | + docfx_directory: "." |
| 40 | + target_directory: "." |
48 | 41 | url_base_path: "/dotnet"
|
49 | 42 |
|
50 |
| - # Find orphaned snippets |
51 |
| - - name: Clean repo - orphaned snippets |
| 43 | + - name: Clean orphaned snippets |
52 | 44 | uses: dotnet/docs-tools/cleanrepo@main
|
53 | 45 | with:
|
54 | 46 | function: "FindOrphanedSnippets"
|
55 |
| - docfx_directory: "ATADocs" |
56 |
| - target_directory: "ATADocs" |
| 47 | + docfx_directory: "." |
| 48 | + target_directory: "." |
57 | 49 | url_base_path: "/dotnet"
|
58 | 50 |
|
59 |
| - # Create the PR for the work done by the "clean repo" tool |
60 |
| - - name: create-pull-request |
| 51 | + - name: Create pull request |
61 | 52 | uses: dotnet/actions-create-pull-request@v4
|
62 | 53 | with:
|
63 | 54 | branch: cleanrepo-orphaned-articles
|
64 |
| - title: "Monthly chores: Delete orphaned articles" |
| 55 | + title: "Monthly chores: Delete orphaned content" |
65 | 56 | commit-message: "Bot 🤖 generated CleanRepo tool run"
|
66 |
| - body: "Find and delete orphaned articles. Contributes to #..." |
| 57 | + body: | |
| 58 | + This PR was generated by the Clean Repo GitHub Action. |
| 59 | + It includes automated cleanup of orphaned content across the entire repo. |
0 commit comments