15 Commits
Author SHA1 Message Date
CMLiussss a8ab11125e Merge pull request #1794 from cmliu/beta2.1
Beta2.1
2026-10-09 02:29:19 +08:00
CMLiussss af4f9837e1 Merge pull request #1575 from cmliu/beta2.1
Beta2.1
2026-09-22 20:21:02 +08:00
CMLiussss 448a83ced0 Merge pull request #1550 from cmliu/beta2.1
Beta2.1
2026-09-06 00:30:52 +08:00
CMLiussss fb3212257e Merge pull request #1503 from chengww5217/fix/sync-workflow
sync 内容一致时改为对齐上游,避免 fork 历史永久分叉
2026-08-29 22:34:52 +08:00
chengwwandCopilot Autofix powered by AI fd3c60da3a Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-08-27 19:39:13 +08:00
chengww c2de6514ab fix: checkout 固定到 main 分支,避免非 main 触发时 push 失败 2026-08-23 15:58:09 +08:00
chengww 809159a534 fix: sync 内容一致时改为对齐上游,避免历史分叉越积越多 2026-08-22 20:02:16 +08:00
CMLiussss e2da274be4 Merge pull request #1501 from cmliu/beta2.1
Beta2.1
2026-08-21 22:24:39 +08:00
CMLiussss 92fc6cc4a4 Merge pull request #1462 from cmliu/beta2.1
Beta2.1
2026-08-12 11:36:15 +08:00
CMLiussss 0b5877f61a Merge pull request #1417 from cmliu/beta2.1
Beta2.1
2026-07-30 00:10:46 +08:00
CMLiussss 1c20518cd1 Merge pull request #1406 from cmliu/beta2.1
Beta2.1
2026-07-28 20:16:56 +08:00
CMLiussss fa5a3a6022 Merge pull request #1394 from cmliu/beta2.1
Beta2.1
2026-07-23 16:31:54 +08:00
CMLiussss 1ab67e7da5 Merge pull request #1366 from cmliu/beta2.1
Beta2.1
2026-07-12 00:29:44 +08:00
CMLiussss 867fd1e3d1 Fix stargazers badge link in README
Updated the stargazers badge link in the README.
2026-07-12 00:17:19 +08:00
CMLiussss 6054f8253a Merge pull request #1363 from cmliu/beta2.1
Beta2.1
2026-07-11 04:38:40 +08:00
+21 -17
View File
@@ -15,26 +15,30 @@ jobs:
if: ${{ github.event.repository.fork }} if: ${{ github.event.repository.fork }}
steps: steps:
# Step 1: run a standard checkout action
- name: Checkout target repo - name: Checkout target repo
uses: actions/checkout@v6 uses: actions/checkout@v6
# Step 2: run the sync action
- name: Sync upstream changes
id: sync
uses: aormsby/fork-sync-with-upstream-action@v3.4.3
with: with:
upstream_sync_repo: cmliu/edgetunnel fetch-depth: 0
upstream_sync_branch: main ref: main
target_sync_branch: main
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set
# Set test_mode true to run tests instead of the true action!! - name: Sync upstream changes
test_mode: false
- name: Sync check
if: failure()
run: | run: |
echo "[Error] 由于上游仓库的 workflow 文件变更,导致 GitHub 自动暂停了本次自动更新,你需要手动 Sync Fork 一次,详细教程请查看项目README.md " git config user.name "GH Action - Upstream Sync"
echo "[Error] Due to a change in the workflow file of the upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork. Please refer to the project README.md for instructions. " git config user.email "action@github.com"
git remote add upstream https://github.com/cmliu/edgetunnel.git
git fetch upstream main
if git diff --quiet HEAD upstream/main; then
# 内容和上游一致,直接对齐,顺带清理历史分叉留下的多余 merge commit
git reset --hard upstream/main
git push --force-with-lease origin main
else
# 有本地修改,保持原来的合并方式,不覆盖任何人的改动
if ! git pull --no-rebase upstream main; then
echo "[Error] 合并上游变更产生冲突,自动同步已暂停,请手动 Sync Fork 并解决冲突。"
echo "[Error] Merge conflict detected while syncing upstream. Please sync your fork manually and resolve the conflicts."
exit 1 exit 1
fi
git push origin main
fi