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
Actions
tab and click theenabled
bottom 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
Expiration
to ‘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_ID
should be the ID you copied at 2)-3.TIMEZONE
examples are in theREADME.md
of 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
Settings
of 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
Pinned
section, 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
Actions
cycle. (1 hour) - You can also update manually.
- Edit README.md or .yml file. It will update instantly.
- Go to
Actions
>Update git
> pressRun workflow
button.
References
This post is licensed under CC BY 4.0 by the author.