From 897ab8922e818ece1e47aa4608b9b464201abbdb Mon Sep 17 00:00:00 2001 From: Hugo Xu Date: Sun, 7 Jan 2024 21:46:29 -0700 Subject: [PATCH] Update lock.yml --- .github/workflows/lock.yml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) 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'