-
Notifications
You must be signed in to change notification settings - Fork 1.6k
37 lines (37 loc) · 1.06 KB
/
stale-content.yml
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
# This workflow inspects the specified relative folder path for stale documents,
# defined as any markdown files with an `ms.date` key whose value is more than
# 330 days from the time this workflow is run.
#
# It ignores the folders in the exclude_path_segment input as those documents
# are not expected to be fresh at this time.
name: Reporting
on:
schedule:
# midnight UTC on the first of every month
- cron: 0 0 1 * *
permissions:
contents: read
jobs:
Report:
name: Stale Content
if: github.repository_owner == 'MicrosoftDocs'
runs-on: windows-latest
defaults:
run:
shell: pwsh
steps:
- name: Checkout Repository
id: checkout_repo
uses: actions/checkout@v4
- name: Write Report
uses: ./.github/actions/reporting/stale-content/v1
with:
relative_folder_path: |
reference/docs-conceptual
exclude_folder_segment: |
lang-spec
media
samples
windows-powershell
developer
upload_artifact: true