Skip to content

Update Blog Posts

Update Blog Posts #137

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 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.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