mirror of
https://github.com/pooneyy/1Panel-Appstore.git
synced 2026-03-17 23:51:03 +08:00
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:
parent
bf66ce9591
commit
d33b4ffee8
12
.github/workflows/sync.yml
vendored
12
.github/workflows/sync.yml
vendored
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user