Use supercronic to schedule renovate
This makes it easier to restart, and makes more creative scheduling possible
This commit is contained in:
parent
c7d5056f2a
commit
5f8a4d7b78
1 changed files with 6 additions and 7 deletions
|
@ -2,10 +2,9 @@
|
|||
|
||||
set -e
|
||||
|
||||
while true;
|
||||
do
|
||||
renovate $@
|
||||
echo "> Sleeping for 1 hour..."
|
||||
sleep 1h &
|
||||
wait $!
|
||||
done
|
||||
curl -fsSL https://github.com/aptible/supercronic/releases/download/v0.2.1/supercronic-linux-amd64 -o ~/supercronic
|
||||
|
||||
chmod +x ~/supercronic
|
||||
|
||||
# Ever 2 hours between 08:00 and 23:00
|
||||
~/supercronic <(echo "0 8-23/2 * * *" renovate $@)
|
||||
|
|
Loading…
Reference in a new issue