This commit is contained in:
ArabCoders 2023-12-02 15:03:06 +03:00
parent 0c0973f9c9
commit 9fa5709b91
2 changed files with 26 additions and 6 deletions

26
.github/workflows/delete-builds.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: delete builds
on:
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "warning"
type: choice
options:
- info
- warning
- debug
schedule:
- cron: "0 0 * * *"
jobs:
delete-builds:
runs-on: ubuntu-latest
steps:
- uses: actions/delete-package-versions@v4
with:
package-name: "ytptube"
package-type: "container"
min-versions-to-keep: 20

View file

@ -79,9 +79,3 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha, scope=${{ github.workflow }}
cache-to: type=gha, scope=${{ github.workflow }}
- uses: actions/delete-package-versions@v4
with:
package-name: "ytptube"
package-type: "container"
min-versions-to-keep: 5