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 }}