-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Expand file tree
/
Copy pathcleanrepo-orphaned-includes.yml
More file actions
43 lines (36 loc) · 1.25 KB
/
cleanrepo-orphaned-includes.yml
File metadata and controls
43 lines (36 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: "clean repo - includes"
on:
schedule:
- cron: "0 1 1 * *" # Runs at 01:00, on day 1 of the month
workflow_dispatch:
permissions:
contents: read
jobs:
clean-repo:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@a5ad31d6a139d249332a2605b85202e8c0b78450 # v2.19.1
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
# Call clean repo
- name: Clean repo
id: clean-repo-step
uses: dotnet/docs-tools/cleanrepo@main
with:
function: "FindOrphanedIncludes"
docfx_directory: "."
target_directory: "."
url_base_path: "/dotnet"
# Create the PR for the work done by the "clean repo" tool
- name: create-pull-request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 #v8.1.1
with:
branch: cleanrepo-orphaned-includes
title: "Monthly chores: Delete orphaned include files"
commit-message: "Bot 🤖 generated CleanRepo tool run"
body: "Find and delete orphaned include files. Contributes to #..."