更新 .gitea/workflows/sync-upstream.yml

This commit is contained in:
2026-04-28 15:06:35 +08:00
parent 0576377c96
commit f291105322
+1 -2
View File
@@ -27,7 +27,6 @@ jobs:
if [ -n "${{ inputs.tag }}" ]; then
TARGET="${{ inputs.tag }}"
else
# 自动找 upstream 最新 tag(按版本号排序)
TARGET=$(git tag -l --sort=-v:refname | head -n 1)
fi
@@ -37,4 +36,4 @@ jobs:
git checkout -B main origin/main
git reset --hard "$TARGET"
git push origin main --force-with-lease
git push origin --tags # tag 也推到 dev 仓库
git push origin --tags