diff --git a/.github/scripts/update-lockfiles.sh b/.github/scripts/update-lockfiles.sh index 9d4f57b2..14daabe8 100755 --- a/.github/scripts/update-lockfiles.sh +++ b/.github/scripts/update-lockfiles.sh @@ -9,14 +9,14 @@ update_lockfiles update_lockfiles update_lockfiles -git add -u - -if [ "$(git diff --cached --name-only)" == '' ]; then - echo "No files updated" - exit 0 -fi - if [ "$1" == '--commit' ]; then + 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 fi \ No newline at end of file