From 3b8219edc5d1abd2ff938540925611b4525823cb Mon Sep 17 00:00:00 2001 From: jingjingxyk Date: Sun, 2 Feb 2025 15:05:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=8C=E6=AD=A5=E5=88=B0gi?= =?UTF-8?q?tee=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/push-to-gitee.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-to-gitee.yml b/.github/workflows/push-to-gitee.yml index f14829a32..d9ab9562b 100644 --- a/.github/workflows/push-to-gitee.yml +++ b/.github/workflows/push-to-gitee.yml @@ -35,10 +35,11 @@ jobs: run: | # ssh -T git@gitee.com git remote add gitee git@gitee.com:jingjingxyk/swoole-cli.git + git fetch gitee -a git push gitee --all # 求差集 (gitee 存在的分支,github 不存在分支,执行删除操作) - git fetch gitee -a + GITEE_BRANCHS=$(git branch -r --list | grep -v -- '->' | grep 'gitee/' | sed 's/gitee\///' | xargs -I {} echo {} | sort) GITHUB_BRANCHS=$(git branch -r --list | grep -v -- '->' | grep 'origin/' | sed 's/origin\///' | xargs -I {} echo {} | sort)