[checkupdates] Don't fail job if checkupdates fails

This commit is contained in:
Jochen Sprickerhof 2021-07-29 07:49:27 +02:00
parent c584f1ed64
commit 888f5b706f

View file

@ -141,7 +141,7 @@ checkupdates_runner:
- url_host=$(echo "${CI_REPOSITORY_URL}" | sed -e 's|https\?://gitlab-ci-token:.*@|ssh://git@|g')
- git remote set-url --push origin "${url_host}"
script:
- fdroid checkupdates --allow-dirty --auto --commit ${CHECKUPDATES_APPIDS}
- fdroid checkupdates --allow-dirty --auto --commit ${CHECKUPDATES_APPIDS} || true
- git pull --rebase origin master
# when two jobs try to push at the same time they occasionally fail, so try one more time if it fails
- git push origin HEAD:master || (git pull --rebase origin master && git push origin HEAD:master)