this post was submitted on 21 Oct 2025
12 points (100.0% liked)

Programming

24019 readers
170 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

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!

top 2 comments
sorted by: hot top controversial new old
[–] hallettj@leminal.space 3 points 2 months ago

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 points 2 months ago

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.