Automating periodic updates for a custom MTG legality checker

Hello,

I’ve built a set of Python scripts to create a custom Magic: The Gathering legality checker using Scryfall and Moxfield. It fetches a card pool, converts Moxfield CSVs to JSON, and validates decks against that pool.

Right now, I'd have to update the format manually every few months. I host my repo on Forgejo, but I’m not sure if it supports GitHub-style workflow automation.

What’s the best way to automate this update process? Should I use a cron job, or are there other alternatives I should consider for a Forgejo-hosted repo?

I don’t have much experience with CI/CD or scheduled automation, so any guidance or examples would be greatly appreciated.

Thanks!

12 points · 2 comments · view on lemmy.world

2 Comments

hallettj@leminal.space · 3 pts · 291d

I haven't used Forgejo, but from the docs it looks like it's actions system is nearly identical to Github's. And yes, that sounds like a good case for a scheduled workflow

driving_crooner@lemmy.eco.br · 1 pts · 291d

What I do is create a function to check if the database need to be updated that is called everytime my scripts run, if it's need then that function call the other that do the update.