| 1 | name: Stale PRs |
| 2 | |
| 3 | on: |
| 4 | schedule: |
| 5 | # Every workday at 2am |
| 6 | - cron: '0 2 * * 1-5' |
| 7 | |
| 8 | permissions: |
| 9 | contents: read |
| 10 | |
| 11 | jobs: |
| 12 | stale_prs: |
| 13 | # Do not run on forks (we want this request to happen only once every night) |
| 14 | permissions: |
| 15 | contents: none |
| 16 | if: github.repository_owner == 'rocq-prover' |
| 17 | runs-on: ubuntu-latest |
| 18 | steps: |
| 19 | - run: curl -d "rocq-prover:rocq:${{ secrets.DAILY_SCHEDULE_SECRET }}" https://coqbot.herokuapp.com/check-stale-pr |