diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 195fd5f1c8f1..2286a82d62d1 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -2,8 +2,10 @@ name: 'Lock Inactive Threads' on: schedule: - # midnight UTC, every Wednesday + # midnight UTC, every Wednesday, for Issues - cron: '0 0 * * 3' + # midnight UTC, every Thursday, for PRs + - cron: '0 0 * * 4' # allow manual triggering from GitHub UI workflow_dispatch: @@ -42,4 +44,4 @@ jobs: # what should the locking status be? issue-lock-reason: 'resolved' pr-lock-reason: 'resolved' - process-only: 'issues, prs' + process-only: ${{ github.event.schedule == '0 0 * * 3' && 'issues' || 'prs' }}