From 7766936f49cbb1f54997581ba99e75c3d6ea7681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= <715557344@qq.com> Date: Tue, 1 Nov 2022 15:33:54 +0800 Subject: [PATCH] split the own branch by default. --- .github/workflows/split.yml | 2 ++ bin/split-linux.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/split.yml b/.github/workflows/split.yml index 080927e68..478947bf0 100644 --- a/.github/workflows/split.yml +++ b/.github/workflows/split.yml @@ -18,6 +18,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Setup Private Key run: | mkdir -p ~/.ssh diff --git a/bin/split-linux.sh b/bin/split-linux.sh index f57574b9a..61b9c7c76 100755 --- a/bin/split-linux.sh +++ b/bin/split-linux.sh @@ -3,7 +3,7 @@ set -e set -x -CURRENT_BRANCH="master" +CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) BASEPATH=$(cd `dirname $0`; cd ../src/; pwd) REPOS=$@