Update Velog Backup #324
This file contains hidden or 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 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 |