-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.17 KB
/
cleanup.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
name: 🧹 Weekly repo cleanup
on:
workflow_dispatch:
schedule:
- cron: "30 22 * * 1" # Weekly at 22:30 UTC on Mondays
jobs:
cleanup:
name: Repo cleanup 🧹
runs-on: ubuntu-latest
steps:
- name: Delete untagged container images older than 2 months
uses: actions/delete-package-versions@v5
with:
package-name: "jekyll-in-a-can"
package-type: "container"
min-versions-to-keep: 8
delete-only-untagged-versions: "true"
token: ${{ secrets.PACKAGES_CLEANUP }}
stale:
name: Destalinate!
runs-on: ubuntu-latest
permissions:
pull-requests: write # for closing stale PRs
steps:
- name: Close stale pull requests
uses: actions/stale@v9
with:
stale-pr-message: "This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 2 weeks."
close-pr-message: "This PR was closed because it has been stalled for 2 weeks with no activity."
days-before-pr-stale: 30
days-before-pr-close: 14
stale-pr-label: "stale"
exempt-pr-labels: "dependencies"