mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Also only git add if passed --commit
This commit is contained in:
parent
6607ea3f1f
commit
b8ceb26bff
2
.github/scripts/update-lockfiles.sh
vendored
2
.github/scripts/update-lockfiles.sh
vendored
|
@ -9,6 +9,7 @@ update_lockfiles
|
|||
update_lockfiles
|
||||
update_lockfiles
|
||||
|
||||
if [ "$1" == '--commit' ]; then
|
||||
git add -u
|
||||
|
||||
if [ "$(git diff --cached --name-only)" == '' ]; then
|
||||
|
@ -16,7 +17,6 @@ if [ "$(git diff --cached --name-only)" == '' ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" == '--commit' ]; then
|
||||
git -c user.name="GBA bot" -c user.email="gw@ilym.me" commit -m 'Update lockfiles'
|
||||
git push
|
||||
fi
|
Loading…
Reference in a new issue