From 618f846edc5552abd6dbe10946de677a0c89a17c Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Tue, 19 Sep 2023 15:56:58 -0400 Subject: [PATCH] GHA Workflow: Faster discussion-locking The closed issue & PR lock is working fine, but it has a built-in 50-item limit. The limit is not configurable. Since there are tens-of-thousands of issues/prs to go through, 50-per-day could take almost a year. Speed things up 24x by running the job every hour instead of daily. Signed-off-by: Chris Evich --- .github/workflows/discussion_lock.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/discussion_lock.yml b/.github/workflows/discussion_lock.yml index a0b3e1c7dc..c332903aa8 100644 --- a/.github/workflows/discussion_lock.yml +++ b/.github/workflows/discussion_lock.yml @@ -6,7 +6,12 @@ name: "Lock closed Issue/PR discussions" on: schedule: - - cron: '0 0 * * *' + # TODO: Put this back to once-per-day after the workflow is able + # to process through the enormous backlog. Leaving it once-per-hour + # runs the risk of spamming podman-monitor should there be some flake + # or hiccup. + # - cron: '0 0 * * *' + - cron: '0 * * * *' # Allow re-use of this workflow by other repositories # Ref: https://docs.github.com/en/actions/using-workflows/reusing-workflows workflow_call: