1
0
Fork 0
mirror of https://github.com/italicsjenga/agb.git synced 2025-01-14 19:40:38 +11:00
agb/.github/scripts/update-lockfiles.sh
2022-02-24 22:03:13 +00:00

20 lines
377 B
Bash
Executable file

#!/usr/bin/env bash
function update_lockfiles() {
find . -name Cargo.lock -execdir cargo update \;
}
update_lockfiles
update_lockfiles
update_lockfiles
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