diff --git a/.github/scripts/update-lockfiles.sh b/.github/scripts/update-lockfiles.sh index 7ffd89d8..11ae32dc 100755 --- a/.github/scripts/update-lockfiles.sh +++ b/.github/scripts/update-lockfiles.sh @@ -11,5 +11,12 @@ 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