diff --git a/.github/workflows/backup.yml b/.github/workflows/backup.yml index 7d40472e..087c4dcc 100644 --- a/.github/workflows/backup.yml +++ b/.github/workflows/backup.yml @@ -19,10 +19,15 @@ jobs: tar -czf main_backup_$(date +"%Y%m%d").tar.gz * working-directory: ${{ github.workspace }} + - name: Set up Git + run: | + git config --global user.email "miaogongzi0227@gmail.com" + git config --global user.name "mgz0227" + - name: Create and push backup branch uses: ad-m/github-push-action@v0.6.0 with: - github_token: ${{ secrets.HARMONY_BACKUP }} + github_token: ${{ secrets.GITHUB_TOKEN }} branch: backup directory: ./ force: true