Step 1. README 생성
Managing your profile README - GitHub Docs
About your profile README You can share information about yourself with the community on GitHub.com by creating a profile README. GitHub shows your profile README at the top of your profile page. You decide what information to include in your profile READM
docs.github.com
Step 2. yaml file 생성
YOUR_GITHUB_USERNAME --> .github --> workflows --> FILE_NAME.yml
# 커밋 먹는 뱀 그래프 생성을 위한 GitHub Action🐍
name: Generate Snake
# Action이 언제 구동될지 결정
on:
schedule:
# 6시간마다 한 번(수정 가능)
- cron: "0 */6 * * *"
# 자동으로 Action이 실행되도록 함
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# 뱀 생성
- uses: Platane/snk@master
id: snake-gif
with:
github_user_name: [Github 아이디]
# output branch에 gif, svg를 각각 생성
gif_out_path: dist/github-contribution-grid-snake.gif
svg_out_path: dist/github-contribution-grid-snake.svg
- run: git status
# 변경사항 push
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: $
branch: master
force: true
- uses: crazy-max/ghaction-github-pages@v2.1.3
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: $
Step 3. Github Action 실행
Generate Snake → Run Workflow
Step 4. 프로필에 추가

* 참고 링크 1 : https://6h15m.github.io/github/readme/2021/07/20/github-snake.html
====================================================================
개인 액세스 토큰 사용하라고 에러 뜨는데 아직 해결 못하고 있네요 ㅠ
구글링해봐도 이해가 안되네요.
'Github' 카테고리의 다른 글
[GITHUB] Commit 날짜 변경하는 방법 정리(feat. 비어있는 칸 잔디심기) (0) | 2022.06.28 |
---|---|
[Github] Contribution Color Graph (0) | 2022.01.28 |
[Github] Activity Overview 설정 (0) | 2022.01.28 |
[Github] Commit Graph 3D (0) | 2022.01.28 |