Skip to content

.github/workflows/backup_workflow.yml #143

.github/workflows/backup_workflow.yml

.github/workflows/backup_workflow.yml #143

on:
schedule:
- cron: '0 23 * * *'
jobs:
pull-changes:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Pull changes from main branch
run: |
git checkout -B backup-branch
git pull origin main
git push origin backup-branch -f