更新 .gitea/workflows/sync-upstream.yml
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user