- Get a Personal Access Token (pat) for your GitHub Account.
- Fork this repo into your GitHub account.
- Save PAT as GitHub Secret in forked repository. Name it
GH_TOKEN
. You can set this up underSettings > Security > Secrets > Actions
- Default Schedule is to run at every 30 minutes. You can change it to run as early as every 5 minutes by updating
cron
key in GitHub action yaml. Adjust accordingly to avoid throttling/rate limiting. A 30 minutes corn schedule is safe. - Verify that GitHub action has been executed and your README.md has been updated with Starred Repositories list.
- Get a Personal Access Token (pat) for your GitHub Account.
- Fork and then
git clone
forked repo. - Run this CLI
- You can build this locally using
go build -o github-stars main.go
and then run as./github-stars generate -t <<pat>> -f README.md
OR - You can run this without building using
go run main.go generate -t <<pat>> -f README.md
- You can build this locally using
Parameters:
-t/--token
: Required
-f/--file
: Optional, Default: README.md