Skip to content

Commit 6924d97

Browse files
authored
Merge branch 'main' into patch-2
2 parents 0f4c60b + ee3450e commit 6924d97

File tree

4,620 files changed

+37502
-30312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,620 files changed

+37502
-30312
lines changed

.github/workflows/clean-repo.yml

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,43 @@
1-
name: "clean repo"
1+
name: "clean repo - images"
22

33
on:
44
schedule:
5-
- cron: "0 1 1 */3 *" # Runs at 01:00, on day 1 of every third month
5+
- cron: "0 1 1 * *" # Runs at 01:00, on day 1 of the month
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
clean-repo:
1013
runs-on: ubuntu-latest
1114
permissions:
1215
contents: write
13-
issues: write
1416
pull-requests: write
1517

1618
steps:
17-
- uses: actions/checkout@v4.2.2
19+
- name: Harden Runner
20+
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
21+
with:
22+
egress-policy: audit
23+
24+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1825

1926
# Call clean repo
2027
- name: Clean repo
2128
id: clean-repo-step
22-
uses: dotnet/docs-tools/cleanrepo/CleanRepo@main
29+
uses: dotnet/docs-tools/cleanrepo@main
2330
with:
24-
docfx_directory: '.'
25-
articles_directory: 'docs'
26-
media_directory: 'docs'
27-
snippets_directory: '.' # This includes the ./samples and ./docs directories, which both contain snippets.
28-
includes_directory: 'includes'
29-
url_base_path: '/visualstudio'
30-
delete: true
31-
orphaned_articles: false
32-
orphaned_images: true
33-
catalog_images: false
34-
orphaned_snippets: true
35-
orphaned_includes: false
36-
replace_redirects: true
37-
relative_links: true
38-
remove_hops: true
39-
31+
function: "FindOrphanedImages"
32+
docfx_directory: "docs"
33+
target_directory: "docs"
34+
url_base_path: "/visualstudio"
35+
4036
# Create the PR for the work done by the "clean repo" tool
4137
- name: create-pull-request
42-
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
38+
uses: dotnet/actions-create-pull-request@v4
4339
with:
44-
branch: create-cleanrepo-pull-request/patch
45-
title: "Monthly chores: Automated repo cleanup"
46-
commit-message: 'Bot 🤖 generated CleanRepo tool run'
47-
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 #..."
40+
branch: cleanrepo-orphaned-images
41+
title: "Monthly chores: Delete orphaned images"
42+
commit-message: "Bot 🤖 generated CleanRepo tool run"
43+
body: "Find and delete orphaned images. Contributes to #..."

.github/workflows/stale-issues.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/stale@v9
17+
- uses: actions/stale@v10
1818
with:
1919
repo-token: ${{ secrets.GITHUB_TOKEN }}
2020
days-before-pr-stale: 14

.github/workflows/whats-new.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)