Skip to content

Commit

Permalink
[ci] lock inactive issues and PRs at different time (#6764)
Browse files Browse the repository at this point in the history
Co-authored-by: James Lamb <[email protected]>
  • Loading branch information
StrikerRUS and jameslamb authored Jan 3, 2025
1 parent ab60426 commit 0be894d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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' }}

0 comments on commit 0be894d

Please sign in to comment.