mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
👷 Clean GitHub
This commit is contained in:
@@ -16,6 +16,11 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
CLEANUP:
|
||||||
|
description: 'Cleanup GitHub'
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.head_ref || github.run_id }}
|
group: ${{ github.head_ref || github.run_id }}
|
||||||
@@ -79,3 +84,16 @@ jobs:
|
|||||||
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||||
STICKER_ID: ${{ secrets.STICKER_ID }}
|
STICKER_ID: ${{ secrets.STICKER_ID }}
|
||||||
CHANGELOG_GITHUB_REPOSITORY: ${{ secrets.CHANGELOG_GITHUB_REPOSITORY }}
|
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: '*'
|
||||||
|
|||||||
Reference in New Issue
Block a user