Use supercronic to schedule renovate

This makes it easier to restart, and makes more creative scheduling possible
This commit is contained in:
Jake Howard 2022-09-13 20:01:37 +01:00
parent c7d5056f2a
commit 5f8a4d7b78
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -2,10 +2,9 @@
set -e set -e
while true; curl -fsSL https://github.com/aptible/supercronic/releases/download/v0.2.1/supercronic-linux-amd64 -o ~/supercronic
do
renovate $@ chmod +x ~/supercronic
echo "> Sleeping for 1 hour..."
sleep 1h & # Ever 2 hours between 08:00 and 23:00
wait $! ~/supercronic <(echo "0 8-23/2 * * *" renovate $@)
done