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 0aea61d commit 9f297fa
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,9 @@ jobs:
working-directory: ${{ github.workspace }}

- name: Create and push backup branch
env:
GITHUB_TOKEN: ${{ secrets.HARMONY_BACKUP }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "mgz0227"
git branch -D backup || true
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")"
git push origin backup
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.HARMONY_BACKUP }}
branch: backup
directory: ./
force: true

0 comments on commit 9f297fa

Please sign in to comment.