name: 'Lock Threads'

on:
  schedule:
    - cron: '13 23 * * *'
  workflow_dispatch:

permissions:
  issues: write

concurrency:
  group: lock

jobs:
  action:
    runs-on: ubuntu-latest
    if: github.repository_owner == 'prometheus'
    steps:
      - uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
        with:
          process-only: 'issues'
          issue-inactive-days: '180'
          github-token: ${{ secrets.PROMBOT_LOCKTHREADS_TOKEN }}
