-
-
Notifications
You must be signed in to change notification settings - Fork 66
56 lines (51 loc) · 1.67 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Cleanup
on:
workflow_dispatch:
schedule:
- cron: '0 0 */14 * *' # every 14 days
jobs:
cleanup-updater:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
suite:
- { ecosystem: bundler }
- { ecosystem: cargo }
- { ecosystem: composer }
- { ecosystem: docker }
- { ecosystem: dotnet-sdk }
- { ecosystem: elm }
- { ecosystem: gitsubmodule }
- { ecosystem: github-actions }
- { ecosystem: gomod }
- { ecosystem: gradle }
- { ecosystem: mix }
- { ecosystem: maven }
- { ecosystem: npm }
- { ecosystem: nuget }
- { ecosystem: pub }
- { ecosystem: pip }
- { ecosystem: swift }
- { ecosystem: devcontainers }
- { ecosystem: terraform }
steps:
- name: Delete old dependabot-updater-${{ matrix.suite.ecosystem }} images
uses: actions/delete-package-versions@v5
with:
package-name: 'dependabot-updater-${{ matrix.suite.ecosystem }}'
package-type: 'container'
min-versions-to-keep: 20
# exclude major and minor versions as per SemVer e.g. 1.20
ignore-versions: '^([0-9]\\d*)\\.([0-9]\\d*)$'
cleanup-server:
runs-on: ubuntu-latest
steps:
- name: Delete old dependabot-server images
uses: actions/delete-package-versions@v5
with:
package-name: 'dependabot-server'
package-type: 'container'
min-versions-to-keep: 20
# exclude major and minor versions as per SemVer e.g. 1.20
ignore-versions: '^([0-9]\\d*)\\.([0-9]\\d*)$'