This-Repo-Has-1750-Stars icon indicating copy to clipboard operation
This-Repo-Has-1750-Stars copied to clipboard

Maybe Github Actions?

Open szdytom opened this issue 4 years ago • 9 comments

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?

szdytom avatar Feb 18 '21 08:02 szdytom

Everything is a little simpler, this script is just running on my server 🤓

RealPeha avatar Feb 18 '21 08:02 RealPeha

Everything is a little simpler, this script is just running on my server 🤓

you are so kind :smile:

suyanhanx avatar Feb 18 '21 09:02 suyanhanx

哈哈哈哈 Good job.

hezhongfeng avatar Feb 19 '21 00:02 hezhongfeng

Here you are: https://github.com/ouuan/This-repo-has-x-stars-y-forks-action

I'm using it in my profile README.

ouuan avatar Feb 19 '21 14:02 ouuan

maybe serverless functions with webhook?

functionstackx avatar Feb 21 '21 00:02 functionstackx

maybe serverless functions with webhook?

https://github.com/iBug/This-Repo-Has-49-Stars

ouuan avatar Feb 21 '21 01:02 ouuan

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

Aazerra avatar Feb 21 '21 11:02 Aazerra

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.)

iBug avatar Feb 21 '21 11:02 iBug

Wow, I think the idea is charming. I also implemented it in this repo. May be it is the simplest one? I also collect the above implementations into README.

Edit: sadly I found that unstar does not trigger a watch event for GitHub Actions. 😢

rickygao avatar Feb 24 '21 11:02 rickygao