Skip to content

Update Velog Backup #324

Update Velog Backup

Update Velog Backup #324

Workflow file for this run

name: Update Velog Backup
on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
concurrency:
group: velog-backup
cancel-in-progress: true
jobs:
backup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: pip install feedparser gitpython beautifulsoup4 requests html2text
- name: Set git config
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Run script
run: python scripts/update_blog.py
- name: Push changes
run: git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git