Skip to content

Commit

Permalink
Add weekly packge clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Husky-Devel committed Nov 12, 2024
1 parent 39f1bc6 commit f4644a1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dloldpkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Clean up old packages

on:
schedule:
- cron: '0 0 * * 0' # Run weekly on Sunday at midnight
workflow_dispatch: # Allow manual trigger

jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read

steps:
- name: Delete old packages
uses: actions/delete-package-versions@v4
with:
package-name: ${{ github.repository }}
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: false
ignore-versions: |
master
dev
cr*
token: ${{ github.token }}

0 comments on commit f4644a1

Please sign in to comment.