name: lock-threads

on:
  schedule:
    - cron: '0 0 * * *'
  workflow_dispatch:

permissions:
  issues: write

concurrency:
  group: lock

jobs:
  action:
    runs-on: ubuntu-latest
    steps:
      - uses: dessant/lock-threads@v3
        with:
          issue-lock-reason: resolved
          issue-inactive-days: 7
          pr-lock-reason: resolved
          pr-inactive-days: 7
          log-output: true
