From dc0189fdab9f74d4572892ffcd514017e025dcfe Mon Sep 17 00:00:00 2001 From: ShonP40 <13995143+ShonP40@users.noreply.github.com> Date: Mon, 4 Sep 2023 13:54:28 +0300 Subject: [PATCH] Actions: Release cleanup action --- .github/workflows/cleanup.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/cleanup.yml diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml new file mode 100644 index 0000000..7dee39e --- /dev/null +++ b/.github/workflows/cleanup.yml @@ -0,0 +1,22 @@ +on: + release: + types: [published] + +jobs: + cleanup: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + ref: master + fetch-depth: + - name: Get previous release tag + id: previous-release + uses: actions/get-previous-release-action@v1 + + - name: Delete old release assets + uses: mknejp/delete-release-assets@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ steps.previous-release.output.release }} + assets: CheatBreaker* \ No newline at end of file