1
0
Fork 0

ci(sync): optimize synchronization workflow using mirror push

- replace separate branch and tag pushes with single `git push --mirror` command
- update echo messages to reflect simplified synchronization process
This commit is contained in:
pooneyy 2026-03-03 00:03:17 +08:00
parent bf66ce9591
commit d33b4ffee8
No known key found for this signature in database
1 changed files with 4 additions and 8 deletions

View File

@ -75,10 +75,8 @@ jobs:
- name: 强制推送所有分支和所有标签到 ${{ matrix.remote.name }}
run: |
echo "将所有分支推送到 ${{ matrix.remote.name }} (修剪模式)..."
git push --force --prune ${{ matrix.remote.name }} --all
echo "将所有 tags 推送到 ${{ matrix.remote.name }}..."
git push --force ${{ matrix.remote.name }} --tags
echo "将仓库同步到 ${{ matrix.remote.name }}..."
git push --mirror ${{ matrix.remote.name }}
- name: 记录成功摘要
if: success()
@ -134,10 +132,8 @@ jobs:
- name: 强制推送所有分支和所有标签到 ${{ matrix.remote.name }}
run: |
echo "将所有分支推送到 ${{ matrix.remote.name }} (修剪模式)..."
git push --force --prune ${{ matrix.remote.name }} --all
echo "将所有 tags 推送到 ${{ matrix.remote.name }}..."
git push --force ${{ matrix.remote.name }} --tags
echo "将仓库同步到 ${{ matrix.remote.name }}..."
git push --mirror ${{ matrix.remote.name }}
- name: 记录成功摘要
if: success()