CI: Run lock.yml only once a week

[why]
After the initial locking of many issues (where we called the workflow
once every hour, it can only process 50 items in one run), this high
frequency is not needed anymore.

[how]
Just search for old closed issues once a week on monday morning.
Also remove manual trigger.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
Fini Jastrow 2023-03-14 01:54:46 +01:00
parent 1fa53bc9cc
commit ad7cf8fadd

View file

@ -2,8 +2,7 @@ name: 'Lock Threads'
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
- cron: '0 0 * * 1'
permissions:
issues: write