From b783f8f4117812a445a6307ad30f36c5892006e8 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Fri, 14 Oct 2022 20:38:32 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Clean=20GitHub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-apk.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index 8676704..699de30 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -16,6 +16,11 @@ on: required: false type: boolean default: false + CLEANUP: + description: 'Cleanup GitHub' + required: false + type: boolean + default: false concurrency: group: ${{ github.head_ref || github.run_id }} @@ -79,3 +84,16 @@ jobs: TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} STICKER_ID: ${{ secrets.STICKER_ID }} CHANGELOG_GITHUB_REPOSITORY: ${{ secrets.CHANGELOG_GITHUB_REPOSITORY }} + + cleanup: + name: GitHub Cleanup + if: ${{ inputs.CLEANUP }} + needs: [ upload-to-telegram ] + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Delete Older Releases + uses: nikhilbadyal/ghaction-rm-releases@v0.0.2 + with: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + RELEASE_PATTERN: '*'