Handle no updates

This commit is contained in:
Gwilym Kuiper 2022-02-24 20:30:15 +00:00
parent 218058cfd5
commit af5b8c181a

View file

@ -11,5 +11,12 @@ update_lockfiles
update_lockfiles update_lockfiles
update_lockfiles update_lockfiles
git -c user.name="GBA bot" -c user.email="gw@ilym.me" commit -a -m 'Update lockfiles' git add -u
if [ "$(git diff --cached --name-only)" == '' ]; then
echo "No files updated"
exit 0
fi
git -c user.name="GBA bot" -c user.email="gw@ilym.me" commit -m 'Update lockfiles'
git push git push