Skip to content

Remove old artifacts #48

Remove old artifacts

Remove old artifacts #48

name: Remove old artifacts
on:
schedule:
- cron: '0 12 * * *' # every day at 12:00 UTC
workflow_dispatch:
jobs:
remove_old_artifacts:
name: Remove old artifacts
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
timeout-minutes: 10 # stop the task if it takes longer
steps:
- name: Delete old package versions of ${{ github.event.repository.name }}
uses: actions/[email protected]
with:
package-name: ${{ github.event.repository.name }}
package-type: container
token: ${{ secrets.GITHUB_TOKEN }}
min-versions-to-keep: 10
ignore-versions: v([0-9]+\.?)+$
- name: Delete old package versions of helm/${{ github.event.repository.name }}
uses: actions/[email protected]
with:
package-name: helm/${{ github.event.repository.name }}
package-type: container
token: ${{ secrets.GITHUB_TOKEN }}
min-versions-to-keep: 10
ignore-versions: v([0-9]+\.?)+$