From 2cca3c101c1786908ac094697c076a39f7f540d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89=E9=B8=AD=E8=9B=8B?= Date: Fri, 5 Sep 2025 01:55:23 +0800 Subject: [PATCH] =?UTF-8?q?ci(workflow):=20=E6=9B=B4=E6=96=B0=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E5=90=8C=E6=AD=A5=E5=B7=A5=E4=BD=9C=E6=B5=81=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加"Scheduled Build and Release"作为触发工作流 - 修改注释说明为更通用的描述 - 将所有git推送命令改为强制推送所有分支 --- .github/workflows/sync_mirrors_git.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sync_mirrors_git.yml b/.github/workflows/sync_mirrors_git.yml index d8dba5e6d..e1cadba10 100644 --- a/.github/workflows/sync_mirrors_git.yml +++ b/.github/workflows/sync_mirrors_git.yml @@ -2,9 +2,9 @@ name: Sync to Mirror Repositories on: workflow_run: - workflows: ["Build repo.json"] + workflows: ["Build repo.json", "Scheduled Build and Release"] types: - - completed # 当第一个工作流完成时触发 + - completed # 当工作流完成时触发 workflow_dispatch: # 允许手动触发 jobs: @@ -28,19 +28,19 @@ jobs: - name: Sync to GitCode run: | git remote add gitcode https://gitcode.com/huiyadanli/bettergi-scripts-list.git || true - git push https://huiyadanli:${{ secrets.GITCODE_TOKEN }}@gitcode.com/huiyadanli/bettergi-scripts-list.git main + git push https://huiyadanli:${{ secrets.GITCODE_TOKEN }}@gitcode.com/huiyadanli/bettergi-scripts-list.git --all --force continue-on-error: true - name: Sync to CNB run: | git remote add cnb https://cnb.cool/bettergi/bettergi-scripts-list.git || true - git push https://cnb:${{ secrets.CNB_TOKEN }}@cnb.cool/bettergi/bettergi-scripts-list.git main + git push https://cnb:${{ secrets.CNB_TOKEN }}@cnb.cool/bettergi/bettergi-scripts-list.git --all --force continue-on-error: true - name: Sync to Gitee run: | git remote add gitee https://gitee.com/babalae/bettergi-scripts-list.git || true - git push https://huiyadanli:${{ secrets.GITEE_TOKEN }}@gitee.com/babalae/bettergi-scripts-list.git main + git push https://huiyadanli:${{ secrets.GITEE_TOKEN }}@gitee.com/babalae/bettergi-scripts-list.git --all --force continue-on-error: true - name: Report sync status