You should be careful with the cron intervals because GitHub eventually just disabled one of the actions that I wrote that worked exactly like this. I was generating a list of the YouTube's dynamic ad-serving domains.
That’s actually a bug, thank you. It will break as soon as the last modification to the data file is more than 20 commits behind HEAD. I used 20 because it made the workflow function (it was working on my local machine but not when I pushed to GitHub because the default depth is 1). I need to update it to check for the last commit that modified the json file rather than searching through the entire commit history.
https://github.com/b0o/apple-autofill-domains