From a7f9fdfc14bf628979c383b320d662d23c5ae7a3 Mon Sep 17 00:00:00 2001 From: miaogongzi <69211489+mgz0227@users.noreply.github.com> Date: Fri, 3 May 2024 21:29:22 +0800 Subject: [PATCH] Update backup.yml --- .github/workflows/backup.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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