Cleanup stale data #578
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Cleanup stale data' | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
paths: | |
- '.github/workflows/stale.yml' | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- name: 'Close stale issues and PRs' | |
uses: actions/stale@v9 | |
branches: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Delete abandoned branches' | |
uses: phpdocker-io/github-actions-delete-abandoned-branches@v2 | |
id: delete-branches | |
with: | |
github_token: ${{ github.token }} | |
last_commit_age_days: 100 | |
dry_run: no | |
- | |
name: Get output | |
run: "echo 'Deleted branches: ${{ steps.delete-branches.outputs.deleted_branches }}'" |