Cron - Stale issues and PRs #1861
This file contains hidden or 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: "Cron - Stale issues and PRs" | |
| on: | |
| schedule: | |
| - cron: "30 1 * * *" | |
| jobs: | |
| cancel-runs: | |
| if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.9.1 | |
| with: | |
| access_token: ${{ github.token }} | |
| stale: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@v6 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| stale-issue-message: "This issue is stale because it has been open for 90 days with no activity." | |
| stale-pr-message: "This PR is stale because it has had no activity for 23 days." | |
| close-pr-message: "This PR is closed because it had no branch updates or review fixes after the stale notice. If you want to continue, please open a new PR with the required fixes." | |
| days-before-issue-stale: 90 | |
| days-before-pr-stale: 23 | |
| days-before-issue-close: -1 | |
| days-before-pr-close: 7 |