Skip to content

Update Blog Posts

Update Blog Posts #226

Workflow file for this run

name: Update Blog Posts
on:
push:
branches:
- main # λ˜λŠ” μ›Œν¬ν”Œλ‘œμš°λ₯Ό νŠΈλ¦¬κ±°ν•˜κ³  싢은 브랜치 이름
schedule:
- cron: '40 10 * * *' # 맀일 μ˜€μ „ 10μ‹œ 40뢄에 μ‹€ν–‰
jobs:
update_blog:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Push changes
run: |
git config --global user.name 'GoldenPearls'
git config --global user.email 'prettylee620@naver.com'
git push https://${{ secrets.GH_PAT }}@github.com/GoldenPearls/velog.git #μžμ‹ μ˜ κΉƒν—ˆλΈŒλͺ…μœΌλ‘œ λ°”κΏ”μ•Ό 함
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install feedparser gitpython
- name: Run script
run: python scripts/update_blog.py