Skip to content

[Gold V] Title: AC, Time: 760 ms, Memory: 99440 KB -BaekjoonHub #388

[Gold V] Title: AC, Time: 760 ms, Memory: 99440 KB -BaekjoonHub

[Gold V] Title: AC, Time: 760 ms, Memory: 99440 KB -BaekjoonHub #388

name: Update readme # GitHub Actions ํƒญ์—์„œ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋Š” ์•ก์…˜ ์ด๋ฆ„
on: # jobs๊ฐ€ ์‹คํ–‰๋˜์–ด์•ผ ํ•˜๋Š” ์ƒํ™ฉ ์ •์˜
push:
branches: [ "main" ] # main ๋ธŒ๋žœ์น˜์— push๊ฐ€ ๋ฐœ์ƒํ–ˆ์„ ๋•Œ
pull_request:
permissions:
contents: write
jobs: # ์‹ค์ œ ์‹คํ–‰๋  ๋‚ด์šฉ
build:
runs-on: ubuntu-latest # ๋นŒ๋“œ ํ™˜๊ฒฝ
steps:
- uses: actions/checkout@v3 # checkout
- name: Set up Python 3.10
uses: actions/setup-python@v3 # setup-python
with:
python-version: "3.10" # 3.10๋ฒ„์ „ ํŒŒ์ด์ฌ ์‚ฌ์šฉ
- name: Install dependencies # 1) ์Šคํฌ๋ฆฝํŠธ์— ํ•„์š”ํ•œ dependency ์„ค์น˜
run: |
python -m pip install --upgrade pip
pip install python-leetcode
- name: Run update.py # 2) update.py ์‹คํ–‰
run: |
python update.py
- name: Commit changes # 3) ์ถ”๊ฐ€๋œ ํŒŒ์ผ commit
run: |
git config --global user.name 'Ori-Gui' # ์œ ์ €๋ช…
git config --global user.email 'dign552@naver.com' # ์œ ์ € ์ด๋ฉ”์ผ
git add -A
git commit -am "auto update README.md" # ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€
- name: Push changes # 4) ๋ฉ”์ธ์— ํ‘ธ์‹œ
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push