Infinidoge / nix-minecraft

An attempt to better support Minecraft-related content for the Nix ecosystem
MIT License
246 stars 26 forks source link

add github action for auto updates #22

Closed Misterio77 closed 1 year ago

Misterio77 commented 1 year ago

Automate running the update.py scripts and committing the results. An example of a commit it creates: https://github.com/Misterio77/nix-minecraft/commit/b97a92e39228917aa19620a1897e8e3958be83b1

Infinidoge commented 1 year ago

I've been meaning to do this, I just didn't know enough about GHA to do it properly. As a nitpick, could you include an if statement to check if update.py exists before trying to run it? (It is possible that some packages may be added without an auto-update script, and I'd prefer it check rather than break.)

EDIT: Actually, nevermind, the globbing would take care of that, wouldn't it.