diff --git a/.github/workflows/sync-auto.yml b/.github/workflows/sync-auto.yml index 9a2adf73d..22033c752 100644 --- a/.github/workflows/sync-auto.yml +++ b/.github/workflows/sync-auto.yml @@ -31,6 +31,10 @@ jobs: ssh-host: gitea.com ssh-url: git@gitea.com:pooneyy/1Panel-Appstore.git https-url: https://gitea.com/pooneyy/1Panel-Appstore + - name: Gitlab + ssh-host: gitlab.com + ssh-url: git@gitlab.com:pooneyy1/1panel-appstore.git + https-url: https://gitlab.com/pooneyy1/1panel-appstore steps: - name: 检出完整仓库 @@ -76,7 +80,8 @@ jobs: - name: 强制推送所有分支和所有标签到 ${{ matrix.remote.name }} run: | echo "将仓库同步到 ${{ matrix.remote.name }}..." - git push --mirror ${{ matrix.remote.name }} + git push --force --all --prune ${{ matrix.remote.name }} + git push --force --tags ${{ matrix.remote.name }} - name: 记录成功摘要 if: success() @@ -133,7 +138,8 @@ jobs: - name: 强制推送所有分支和所有标签到 ${{ matrix.remote.name }} run: | echo "将仓库同步到 ${{ matrix.remote.name }}..." - git push --mirror ${{ matrix.remote.name }} + git push --force --all --prune ${{ matrix.remote.name }} + git push --force --tags ${{ matrix.remote.name }} - name: 记录成功摘要 if: success() diff --git a/.github/workflows/sync-schedule.yml b/.github/workflows/sync-schedule.yml index 671298758..31af6a126 100644 --- a/.github/workflows/sync-schedule.yml +++ b/.github/workflows/sync-schedule.yml @@ -66,7 +66,8 @@ jobs: - name: 强制推送所有分支和所有标签到 ${{ matrix.remote.name }} run: | echo "将仓库同步到 ${{ matrix.remote.name }}..." - git push --mirror ${{ matrix.remote.name }} + git push --force --all --prune ${{ matrix.remote.name }} + git push --force --tags ${{ matrix.remote.name }} - name: 记录成功摘要 if: success() @@ -122,7 +123,8 @@ jobs: - name: 强制推送所有分支和所有标签到 ${{ matrix.remote.name }} run: | echo "将仓库同步到 ${{ matrix.remote.name }}..." - git push --mirror ${{ matrix.remote.name }} + git push --force --all --prune ${{ matrix.remote.name }} + git push --force --tags ${{ matrix.remote.name }} - name: 记录成功摘要 if: success()