summaryrefslogtreecommitdiff
path: root/.github/workflows/stale.yaml
blob: f77151a815f2a9817fff68d63b4b76dfd63c08ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Stale PRs
on:
  workflow_dispatch:
  schedule:
    - cron: 0 0 * * *

permissions:
  issues: write
  pull-requests: write

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/stale@v6
        id: stale
        with:
          stale-pr-message: This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or it will be closed in 7 days
          days-before-stale: 30
          days-before-close: 7
          days-before-issue-close: -1
          exempt-pr-labels: blocked,must,should,keep
          stale-pr-label: stale
      - name: Print outputs
        run: echo ${{ join(steps.stale.outputs.*, ',') }}