php-youtubers / directory

Curated a list of PHP YouTubers. 📋
666 stars 112 forks source link

Add cron to update stats #92

Closed simonhamp closed 9 months ago

simonhamp commented 10 months ago

This simply adds a GitHub Action that should update the stats every Monday.

It requires you to set an YOUTUBE_API_KEY secret, which you should be able to do here

When the cron runs it will PR the updates, so it should be a simple case of merging the PR to keep the list up to date

nunomaduro commented 10 months ago

@hrsa can you check this? looks dope.

hrsa commented 10 months ago

@nunomaduro it is! I'd love to but I have no access to my laptop until Sunday evening, I can take a look soon 👍

simonhamp commented 10 months ago

@hrsa You can see an example of the result here

simonhamp commented 10 months ago

Made a few improvements to this just to make it a bit more reliable. It now:

simonhamp commented 9 months ago

@hrsa @nunomaduro anything I can do to help get this one over the line?

hrsa commented 9 months ago

@simonhamp sorry for the delay, that's a great contribution ! 💪 @nunomaduro i've tested it out and it works well. but before merging - either you would have to add the API key to the secrets, or i would need admin access to do that :)

nunomaduro commented 9 months ago

You are now admin.

simonhamp commented 9 months ago

No apologies necessary @hrsa ! Thanks for taking the time to review and merge 🎉

hrsa commented 9 months ago

@nunomaduro we also need to modify the permissions for the workflow, since it creates PRs: https://github.com/php-youtubers/directory/settings/actions The options are greyed out for me, i guess that only you can modify that

hrsa commented 7 months ago

@nunomaduro still need you here :)

@nunomaduro we also need to modify the permissions for the workflow, since it creates PRs: https://github.com/php-youtubers/directory/settings/actions The options are greyed out for me, i guess that only you can modify that