Make it easier to run update-lockfiles locally

This commit is contained in:
Gwilym Inzani 2023-08-06 21:04:58 +01:00
parent 11f71371e2
commit b45668f5e9
3 changed files with 15 additions and 13 deletions

View file

@ -16,5 +16,7 @@ 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

View file

@ -2,9 +2,9 @@ name: Update lockfiles
on:
push:
branches: [ 'renovate/*' ]
branches: ["renovate/*"]
pull_request:
branches: [ 'renovate/*' ]
branches: ["renovate/*"]
env:
CARGO_TERM_COLOR: always
@ -19,4 +19,4 @@ jobs:
uses: actions/checkout@v3
- uses: extractions/setup-just@v1
- name: Update lock files
run: just update-lockfiles
run: just update-lockfiles --commit

View file

@ -84,8 +84,8 @@ build-roms:
build-book:
(cd book && mdbook build)
update-lockfiles:
bash .github/scripts/update-lockfiles.sh
update-lockfiles *args:
bash .github/scripts/update-lockfiles.sh {{args}}
update-linker-scripts:
find -type f -name gba.ld | grep -v ./agb/gba.ld | xargs -n1 cp -v -- agb/gba.ld