Write a script to partially automate updating lego
Whenever something in lego gets updated, all of the sites need to update the submodule, commit, and push. This has eaten a lot of time in the past. It isn't hard, just slow.
I'll be writing a script to automate updating lego for all the sites. The flow will look something like this:
for each web repo:
- checkout a new branch named
update-lego-{lego_hash}
that tracksorigin/main
- cd into the lego directory
git pull origin main ; cd ..
- add the lego directory, commit, and push to a new branch on the remote
- print merge request URLs and errors