-
-
Notifications
You must be signed in to change notification settings - Fork 25
44 lines (41 loc) · 1.16 KB
/
package-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
name: Package Cleanup
on:
workflow_dispatch:
schedule:
- cron: "5 4 * * 3"
jobs:
package-cleanup:
name: Cleanup Old GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Delete Package Versions
uses: actions/delete-package-versions@v5
with:
package-name: gameserver
package-type: container
min-versions-to-keep: 1
delete-only-untagged-versions: true
package-cleanup-2:
name: Cleanup Old GitHub Packages 2
needs: package-cleanup
runs-on: ubuntu-latest
steps:
- name: Delete Package Versions
uses: actions/delete-package-versions@v5
with:
package-name: gameserver
package-type: container
min-versions-to-keep: 1
delete-only-untagged-versions: true
package-cleanup-3:
name: Cleanup Old GitHub Packages 3
needs: package-cleanup-2
runs-on: ubuntu-latest
steps:
- name: Delete Package Versions
uses: actions/delete-package-versions@v5
with:
package-name: gameserver
package-type: container
min-versions-to-keep: 1
delete-only-untagged-versions: true