Skip to content

Commit

Permalink
Update backup.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mgz0227 authored May 3, 2024
1 parent e721999 commit f5d6bff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ jobs:
tar -czf main_backup_$(date +"%Y%m%d").tar.gz *
working-directory: ${{ github.workspace }}

- name: Create and push backup branch
- name: Configure Git
run: |
git config --local user.email "[email protected]"
git config --local user.name "mgz0227"
git branch -D backup || true
- name: Create and push backup branch
env:
GITHUB_TOKEN: ${{ secrets.HARMONY_BACKUP }}
run: |
git checkout -b backup
git add main_backup_$(date +"%Y%m%d").tar.gz
git commit -m "Backup main branch as of $(date +"%Y-%m-%d")"
Expand Down

0 comments on commit f5d6bff

Please sign in to comment.