From bcbeb7d344d87b1243d6b853838841412f282822 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Wed, 14 Aug 2024 18:41:46 +0200 Subject: [PATCH] build: add clean Signed-off-by: AuxXxilium --- .github/workflows/clean.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/clean.yml diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml new file mode 100644 index 0000000..8f839f0 --- /dev/null +++ b/.github/workflows/clean.yml @@ -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 \ No newline at end of file