Skip to content

Commit d6bd489

Browse files
authored
Update main.yml
1 parent fcfd9ed commit d6bd489

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ jobs:
2020
git config user.name "github-actions[bot]"
2121
git config user.email "github-actions[bot]@users.noreply.github.com"
2222
23-
# 添加上游仓库
2423
git remote add upstream https://github.com/Fanju6/NetProxy-Magisk.git
2524
git fetch upstream
2625
27-
# 合并上游 main 分支
26+
# 强制使用上游的 main 分支
2827
git checkout main
29-
git merge upstream/main --no-edit
28+
git reset --hard upstream/main
3029
31-
# 推送到 Fork
32-
git push origin main
30+
# 强制推送到 Fork
31+
git push origin main --force

0 commit comments

Comments
 (0)