From 00a5f9c0de1839ecae62061065ed55ccd7dfb9c0 Mon Sep 17 00:00:00 2001 From: Nikita Titov Date: Fri, 20 Dec 2024 01:18:44 +0300 Subject: [PATCH 1/2] test --- .github/workflows/lock.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 195fd5f1c8f1..0c19b3486d16 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -3,7 +3,8 @@ name: 'Lock Inactive Threads' on: schedule: # midnight UTC, every Wednesday - - cron: '0 0 * * 3' + - cron: '25 22 * * *' + - cron: '30 22 * * *' # allow manual triggering from GitHub UI workflow_dispatch: @@ -42,4 +43,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 == '25 22 * * *' && 'issues' || 'prs' }} From 7e151ec4cc574dd207d9fa7325e6b22895f51816 Mon Sep 17 00:00:00 2001 From: Nikita Titov Date: Fri, 20 Dec 2024 01:32:42 +0300 Subject: [PATCH 2/2] dev --- .github/workflows/lock.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 0c19b3486d16..2286a82d62d1 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -2,9 +2,10 @@ name: 'Lock Inactive Threads' on: schedule: - # midnight UTC, every Wednesday - - cron: '25 22 * * *' - - cron: '30 22 * * *' + # 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: @@ -43,4 +44,4 @@ jobs: # what should the locking status be? issue-lock-reason: 'resolved' pr-lock-reason: 'resolved' - process-only: ${{ github.event.schedule == '25 22 * * *' && 'issues' || 'prs' }} + process-only: ${{ github.event.schedule == '0 0 * * 3' && 'issues' || 'prs' }}