-
-
Notifications
You must be signed in to change notification settings - Fork 408
76 lines (68 loc) · 2.4 KB
/
Copy pathhousekeeping.yaml
File metadata and controls
76 lines (68 loc) · 2.4 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Housekeeping
# checks are on all directories
on:
# Run daily at 6:15
schedule:
- cron: '15 6 * * *'
workflow_dispatch:
# for security reasons the github actions are pinned to specific SHAs
jobs:
tidy_workflows:
name: Tidy workflows
runs-on: ubuntu-24.04
permissions:
actions: write
contents: read
steps:
- name: Delete stale workflow runs
uses: Mattraks/delete-workflow-runs@5bf9a1dac5c4d041c029f0a8370ddf0c5cb5aeb7 # v2.1.0
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 28
keep_minimum_runs: 10
- name: Delete unused workflows
uses: otto-de/purge-deprecated-workflow-runs@c1c15cf4f591945ca017d41f04758773b74de629 # v4.0.13
with:
token: ${{ github.token }}
link_checker:
name: Link checker
runs-on: ubuntu-24.04
steps:
- name: Checkout markdown
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Link Checker
uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
with:
# skip the jekyll files under '_includes' directory, check all other directories
args: >-
--verbose
--no-progress
--max-retries 1
--retry-wait-time 10
--max-concurrency 2
'docs/**/*.md'
'docs/*.md'
'*.md'
fail: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
stale:
name: Tidy pull requests
runs-on: ubuntu-24.04
permissions:
pull-requests: write
issues: write
steps:
- name: Tidy stale PRs and issues
uses: actions/stale@1e223db275d687790206a7acac4d1a11bd6fe629 # v10.4.0
with:
days-before-issue-stale: 183
days-before-issue-close: -1
stale-issue-message: 'This issue is stale because it has been open for 6 months with no activity.'
stale-issue-label: stale
remove-issue-stale-when-updated: true
days-before-pr-stale: 21
days-before-pr-close: 7
stale-pr-message: 'This PR is stale because it has been open 21 days with no activity. Remove stale label, or add a comment, otherwise it will be closed in 7 days.'
close-pr-message: 'This PR was closed because it has been stalled for 4 weeks with no activity.'