Add development language usage statistics on your Profile Readme.
Did not need to fork this repository.
-
Go to your Profile Readme
-
move to
<username>/<username>/actions
-
Click New workflow
-
Set up a workflow yourself
-
Delete the default content
-
copy the following code and paste it to your new workflow
name: Top-Languages Readme on: workflow_dispatch: schedule: # Runs at 12am UTC - cron: '0 0 * * *' jobs: update-readme: name: Update this repo's README runs-on: ubuntu-latest steps: - uses: ryuanerin/top-languages-readme@master
-
Add a comment to your README.md like this:
<!--START_SECTION:top_language--> <!--END_SECTION:top_language-->
-
Go to Action menu
-
Click
Top-Languages Readme
underAll workflows
-
Click
Run workflow
-
Move to Github Settings -> Developer settings -> Personal access tokens -> Generate new token
-
Check repo
-
Click
generate token
-
Copy
token
-
Go to your Profile Readme
-
Move to
Settings
->Secrets
-
Click
New Secret
-
input
GH_TOKEN
in Name -
input the copied token in Value
-
Click
Add secret
-
Edit you workflow file
name: Top-Languages Readme on: workflow_dispatch: schedule: # Runs at 12am UTC - cron: '0 0 * * *' jobs: update-readme: name: Update this repo's README runs-on: ubuntu-latest steps: - uses: ryuanerin/top-languages-readme@master with: GH_TOKEN: ${{ secrets.GH_TOKEN }}
name: Top-Languages Readme
on:
workflow_dispatch:
schedule:
# Runs at 12am UTC
- cron: '0 0 * * *'
jobs:
update-readme:
name: Update this repo's README
runs-on: ubuntu-latest
steps:
- uses: ryuanerin/top-languages-readme@master
with:
COMMIT_MESSAGE: "Updated the Graph with new Metrics" # Optional
USERNAME: <username> # Optional
LINE_FORMAT: "$NAME $SIZE $BAR $PERCENT" # Optional
LIST_COUNT: 10 # Optional
BLOCKS: "░█" # Optional
BAR_WIDTH: 25 # Optional
SHOW_TOTAL: false # Optional
TOP_TOTAL: false # Optional
SHOW_TOTAL_SEPARATOR: true # Optional
-
BLOCKS styles:
- default :
░█
BLOCKS default example (55.5%) █
O ██████
░█
██████░░░░
░▒▓█
█████▓░░░░
⣀⣄⣤⣦⣶⣷⣿
⣿⣿⣿⣿⣿⣶⣀⣀⣀⣀
⣀⣄⣆⣇⣧⣷⣿
⣿⣿⣿⣿⣿⣧⣀⣀⣀⣀
▁▂▃▄▅▆▇█
█████▅▁▁▁▁
▏▎▍▌▋▊▉█
█████▋▏▏▏▏
○◔◐◕⬤
⬤⬤⬤⬤⬤◕○○○○
□◱◧▣■
■■■■■▣□□□□
□◱▨▩■
■■■■■▩□□□□
□▨▩■
■■■■■▩□□□□
□◱▥▦■
■■■■■▦□□□□
- default :