This is a simple GitHub Action that will list the top repositories of a user or organization.
Required The username of your GitHub account.
Optional If you want to include the repositories of the organizations you are part of. Default false.
Optional The commit message. Default "Update README.md with top repositories".
Optional The name of the balise. Default "Top-Repositories".
Optional The number of top repositories to list. Default 3.
No outputs. The action will update the README.md file of the repository.
You need to have a README.md file in the root of your repository.
And you need to have the following balise in your README.md file:
<!--Top-Repositories-->
<!--/Top-Repositories-->The name of the balise can be changed with the
name_of_baliseinput. Default is"Top-Repositories".
name: List top repositories
on:
push:
branches:
- master
jobs:
list-top-repos:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: List top repositories
uses: tot0p/top-repo-action@v1
with:
username: tot0p
include_org_repos: true # Optional (default: false)
commit_message : "Update README.md" # Optional (default: "Update README.md with top repositories")
name_of_balise : "Top-Repositories" # Optional (default: "Top-Repositories")
top : 3 # Optional (default: 3)
| Top | Repo |
|---|---|
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 |