aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/cron-lock.yml
blob: 665313135b6790f9689ed1f40f2d96c28c9618df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: cron-lock

on:
  schedule:
    - cron: "0 0 * * *" # every day at 00:00 UTC
  workflow_dispatch:

permissions:
  issues: write
  pull-requests: write

concurrency:
  group: lock

jobs:
  action:
    runs-on: ubuntu-latest
    if: github.repository == 'go-gitea/gitea'
    steps:
      - uses: dessant/lock-threads@v5
        with:
          issue-inactive-days: 10
          pr-inactive-days: 7