Open szdytom opened 3 years ago
Everything is a little simpler, this script is just running on my server 🤓
Everything is a little simpler, this script is just running on my server 🤓
you are so kind :smile:
哈哈哈哈 Good job.
Here you are: https://github.com/ouuan/This-repo-has-x-stars-y-forks-action
I'm using it in my profile README.
maybe serverless functions with webhook?
maybe serverless functions with webhook?
Here you are: https://github.com/ouuan/This-repo-has-x-stars-y-forks-action
I'm using it in my profile README.
this good but its updating a little bit slow
this good but its updating a little bit slow
If you want faster updates, you'll probably be better off with a serverless function and GitHub webhook as I wrote in my blog. I also left a small piece of demo Lambda code in my repository iBug/This-Repo-Has-N-Stars which you can take for reference. In my experiences, this approach takes just around 1 second to update the repo name (and description if also supplied).
AWS offers perpetual Free Tier for Lambda and 12-month Free Tier for API Gateway. Alternatively, Netlify also offers perpetual free serverless functions. Both of them are more than enough to get you started.
(Disclaimer: I'm not affiliated with either Amazon.com, Inc. or Netlify.)
If I am not badly wrong, you're running the script on your own computer. But what about at nights, or you had to reboot your computer for maintainance? Github Action is a better platfrom for such automated scripts, isn't it?