Skip to content

Commit 2cb2515

Browse files
authored
Add clean up on old packages (#3938)
1 parent 583e7ce commit 2cb2515

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow uses actions that are not certified by GitHub. They are provided
2+
# by a third-party and are governed by separate terms of service, privacy
3+
# policy, and support documentation.
4+
5+
name: Clean up old packages
6+
on:
7+
schedule:
8+
- cron: '00 05 * * *'
9+
push:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
clean-up-old-packages:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
packages: write
18+
steps:
19+
- uses: actions/delete-package-versions@e5bc658cc4c965c472efe991f8beea3981499c55 # v5.0.0
20+
with:
21+
package-name: 'lychee'
22+
package-type: 'container'
23+
min-versions-to-keep: 10
24+
delete-only-untagged-versions: 'true'

0 commit comments

Comments
 (0)