agb/.github/scripts/update-lockfiles.sh

21 lines
377 B
Bash
Raw Normal View History

#!/usr/bin/env bash
function update_lockfiles() {
2022-02-25 09:03:13 +11:00
find . -name Cargo.lock -execdir cargo update \;
}
update_lockfiles
update_lockfiles
update_lockfiles
update_lockfiles
2022-02-25 07:30:15 +11:00
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