Update Blog Posts #226
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |