Files
docker-py-revanced/.github/workflows/github-cleanup.yml
T
Nikhil Badyal d792cab58f 👷 Reuse workflows
2022-10-15 16:57:02 +05:30

27 lines
653 B
YAML

name: GitHub Cleanup
on:
workflow_dispatch:
workflow_call:
secrets:
GH_TOKEN:
required: true
jobs:
github-cleanup:
name: GitHub Cleanup
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Delete Older Releases
uses: nikhilbadyal/ghaction-rm-releases@v0.0.2
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
RELEASE_PATTERN: '[\s\S]*'
- name: Delete Workflow Runs
uses: nikhilbadyal/ghactions/.github/workflows/github-workflow-cleaner.yml@main
with:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}