forked from lowlighter/metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.41 KB
/
stale.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
38
39
40
41
42
43
44
45
46
47
48
name: Stale issues, pr and runs
on:
schedule:
- cron: "30 1 * * *"
workflow_dispatch:
jobs:
stale:
name: Flag stale issues and pull requests
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ github.token }}
stale-pr-message: This pull request seems to be inactive and will be automatically closed in a few days if it remains without any activity.
days-before-pr-stale: 21
days-before-pr-close: 3
stale-pr-label: ⏹️ stale
remove-stale-when-updated: yes
operations-per-run: 100
lock:
name: Lock inactive closed issues and pull requests
needs:
- stale
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: 14
issue-lock-reason: ""
issue-lock-labels: ☑️ archived
pr-lock-inactive-days: 14
pr-lock-reason: ""
pr-lock-labels: ☑️ archived
workflows:
name: Remove expired workflow runs
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run script
run: ./delete_workflows.sh lowlighter/metrics
working-directory: .github/workflows/maintenance
env:
GITHUB_TOKEN: ${{ github.token }}