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
8
.github/scripts/update-lockfiles.sh
vendored
8
.github/scripts/update-lockfiles.sh
vendored
|
@ -9,14 +9,14 @@ update_lockfiles
|
|||
update_lockfiles
|
||||
update_lockfiles
|
||||
|
||||
git add -u
|
||||
if [ "$1" == '--commit' ]; then
|
||||
git add -u
|
||||
|
||||
if [ "$(git diff --cached --name-only)" == '' ]; then
|
||||
if [ "$(git diff --cached --name-only)" == '' ]; then
|
||||
echo "No files updated"
|
||||
exit 0
|
||||
fi
|
||||
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