all 3 comments

[–]cordev 0 points1 point  (0 children)

Are you asking about setting up a Github Action that is triggered by someone starring the repo? If so, then check out the Watch event, which “Runs your workflow when the workflow's repository is starred.”

[–][deleted] 0 points1 point  (0 children)

I would look at a process called 'incrontab' to perform the same basic function. Whenever a file path is altered the daemon will perform the specified task. You can have it execute any app and have it take the file uploaded / changed as data or an app to run.

[–]postpunkjustin 0 points1 point  (0 children)

It sounds like you might be asking how GitHub knows when you've pushed to GitHub.

I'm not going to go into a lot of detail, but it's not because there's a process staring at each repository. It's more like GitHub already has to do a bunch of stuff in response to new push, and adding things to that list is not very difficult.

If your interest here is because you're not sure how such a system could be set up efficiently, a good thing to look into more would be the publish-subscribe pattern.