From 39819c4107337eb6a8a4a2a547c85a7da6a45d43 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Fri, 21 Oct 2022 23:43:41 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Workflow=20cleanup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-apk.yml | 4 ++-- .github/workflows/dockerhub.yml | 2 +- .github/workflows/github-cleanup.yml | 25 ------------------------- 3 files changed, 3 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/github-cleanup.yml diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index a886bed..7490ee3 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -97,7 +97,7 @@ jobs: SEND_STICKER: ${{ secrets.SEND_STICKER }} upload-to-telegram-root: - needs: [ build-apk , upload-to-telegram] + needs: [ build-apk , upload-to-telegram ] uses: nikhilbadyal/ghactions/.github/workflows/telegram-uploader.yml@main if: ${{ inputs.TELEGRAM_UPLOAD }} && ${{ inputs.GITHUB_UPLOAD }} && github.repository == 'nikhilbadyal/docker-py-revanced' secrets: @@ -117,6 +117,6 @@ jobs: name: GitHub Cleanup if: ${{ inputs.CLEANUP }} needs: [ upload-to-telegram ] - uses: ./.github/workflows/github-cleanup.yml + uses: nikhilbadyal/ghactions/.github/workflows/github-cleanup.yml@main secrets: GH_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index aa06bd1..bfb9e73 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -16,6 +16,6 @@ jobs: DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} cleanup: name: GitHub Cleanup - uses: ./.github/workflows/github-cleanup.yml + uses: nikhilbadyal/ghactions/.github/workflows/github-cleanup.yml@main secrets: GH_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/github-cleanup.yml b/.github/workflows/github-cleanup.yml deleted file mode 100644 index e31de31..0000000 --- a/.github/workflows/github-cleanup.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: GitHub Cleanup - -on: - workflow_dispatch: - workflow_call: - secrets: - GH_TOKEN: - required: true - -jobs: - release-cleanup: - name: GitHub Cleanup - timeout-minutes: 5 - runs-on: ubuntu-latest - steps: - - name: Delete Older Releases - uses: nikhilbadyal/ghaction-rm-releases@v0.0.1 - with: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - RELEASE_PATTERN: '[\s\S]*' - workflow-cleanup: - uses: nikhilbadyal/ghactions/.github/workflows/github-workflow-cleaner.yml@main - secrets: - GH_TOKEN: ${{ secrets.GH_TOKEN }} - GITHUB_REPOSITORY: ${{ github.repository }}