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 9feeb8b commit ee9ba5d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ jobs:
- name: Add Backup Branch
run: |
git checkout -b backup || git checkout backup
git add .
git rm -rf .
git add -A
git commit -m "Auto backup master branch code"
git push origin backup
- name: Upload Backup Artifact
uses: actions/upload-artifact@v2
with:
name: master_backup_$datetime
path: master_backup_$datetime.tar.gz
- name: Switch Back to Master Branch
run: git checkout master

0 comments on commit ee9ba5d

Please sign in to comment.