build: add clean

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-08-14 18:41:46 +02:00
parent f3a56d93ef
commit bcbeb7d344

26
.github/workflows/clean.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Clean Configs
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Init Env
run: |
git config --global user.email "info@auxxxilium.tech"
git config --global user.name "AuxXxilium"
sudo timedatectl set-timezone "Europe/Berlin"
- name: Clean Old
uses: Nats-ji/delete-old-releases@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
keep-count: 1
remove-tags: true
keep-old-minor-releases: false