From 63a151aef9f9f04f95074ad353c05f57a21c7888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 16 Nov 2023 00:11:20 +0800 Subject: [PATCH] Add delete-older-releases action --- .github/workflows/release.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 43e061cb0..bda5b4ebf 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -28,6 +28,11 @@ jobs: if: steps.build.outputs.skip != 'true' run: | sha256sum geosite.db > geosite.db.sha256sum + - uses: dev-drprasad/delete-older-releases@v0.3.2 + with: + keep_latest: 3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create a release if: steps.build.outputs.skip != 'true' id: create_release