diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index ffcb793..aad01aa 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -1,18 +1,28 @@ -name: 'Lock Old Threads' +name: 'Lock Threads' on: schedule: - - cron: '0 */8 * * *' + - cron: '0 */8 * * *' + workflow_dispatch: + +permissions: + issues: write + pull-requests: write + discussions: write + +concurrency: + group: lock-threads jobs: - lock: + action: runs-on: ubuntu-latest timeout-minutes: 120 steps: - - uses: dessant/lock-threads@v2 - with: - github-token: ${{ github.token }} - issue-lock-inactive-days: '7' - issue-lock-reason: '' - pr-lock-inactive-days: '14' - pr-lock-reason: '' + - uses: dessant/lock-threads@v5 + with: + github-token: ${{ github.token }} + issue-inactive-days: '7' + issue-lock-reason: '' + pr-inactive-days: '14' + pr-lock-reason: '' + discussion-inactive-days: '28'