Github Profile [3]: Commit Stat (feat.gist)
Prerequisites
[1] Github-Profile-1-README.md
[2] Github-Profile-2-GitHub-Stats
1. Fork the repo from productive-box.git
2. Activate Actions
- go to
Actionstab and click theenabledbottom to activate.
3. Generate new public gist
- the title and contents do not matter. It will be overwritten anyway.
- ⚠️ click
Create public gist - copy the gist ID beforehand.
4. Generate token
- check
repo,write:packages, andgist. - ⚠️ please copy the token and save it somewhere else!!!
- set the
Expirationto ‘No expiration’.
5. Edit the .yml file
- Open
productive-box/.github/workflows/schedule.yml - Change the user name.
1
2
3
4
...
steps:
- name: Update gist
uses: rebedy/productive-box@master
- And change the gist ID and the timezone.
GIST_IDshould be the ID you copied at 2)-3.TIMEZONEexamples are in theREADME.mdof this repository.
1
2
3
4
5
6
7
8
...
steps:
- name: Update gist
uses: rebedy/productive-box@master
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GIST_ID: ...
TIMEZONE: Asia/Seoul
6. Add new secret
Settingsof the repository >Secrets and variables>Actions>New repository secret- Name:
GH_TOKEN - Secret: token you copied from 3)-2.
7. Fix the gist onto my GitHub profile
- On the top right corner of GitHub > Click your profile photo > Click
Your profile.
At the left top of the
Pinnedsection, clickCustomize your pins.Select up to six repositories and gists, combined > Click
Save pins.
1
2
- (Optional) To change which items are included in the searchable list, next to `Show`, select or deselect **`Repositories`** and **`Gists`**.
- (Optional) To make it easier to find a specific item, in the `Filter repositories and gists` field, type the name of a user, organization, repository, or gist.
8. Update the gist
- It will update automatically by the
Actionscycle. (1 hour) - You can also update manually.
- Edit README.md or .yml file. It will update instantly.
- Go to
Actions>Update git> pressRun workflowbutton.
References
This post is licensed under CC BY 4.0 by the author.
.md/0.png)
.md/1.png)
.md/2.png)
.md/3.png)
.md/4.png)
.md/5.png)
.md/6.png)
.md/7.png)
.md/8.png)