Update main.yml

This commit is contained in:
碎念_Nian
2024-02-03 00:18:14 +08:00
committed by GitHub
Unverified
parent 085cd9ab28
commit 8643813820
+1 -1
View File
@@ -49,7 +49,7 @@ jobs:
run: |
git checkout main
git reset --hard upstream/main
git push origin main --force || (for i in {1..5}; do echo "------" && echo "你需要手动同步上游分支" && echo "同步方法如下:" && echo "1. 打开你的仓库首页:https://github.com/${{ github.repository }}" && echo "2. 点击 Sync fork" && echo "3. 点击 Update branch"; done; exit 1)
git push origin main --force || (for i in {1..10}; do echo "------" && echo "你需要手动同步上游分支" && echo "同步方法如下:" && echo "1. 打开你的仓库首页:https://github.com/${{ github.repository }}" && echo "2. 点击 Sync fork" && echo "3. 点击 Update branch 或 Discard xxx commits"; done; exit 1)
# 从备份目录将.txt文件还原到当前目录,然后删除备份目录
- name: Restore local .txt files and delete backup