From e28c47bc4218abb5d9b2d20060a0f32107d334e1 Mon Sep 17 00:00:00 2001 From: juewuy Date: Mon, 22 Jan 2024 18:41:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0singbox=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=89=88actions=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update_singbox_core_test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_singbox_core_test.yaml b/.github/workflows/update_singbox_core_test.yaml index c66a0f4..dc5c907 100644 --- a/.github/workflows/update_singbox_core_test.yaml +++ b/.github/workflows/update_singbox_core_test.yaml @@ -44,7 +44,7 @@ jobs: with: repository: ${{ github.event.inputs.tag1 }} ref: ${{ github.event.inputs.tag2 }} - fetch-depth: 1 + fetch-depth: 0 - name: setup go uses: actions/setup-go@v4.1.0 @@ -57,6 +57,7 @@ jobs: git remote add sekai https://github.com/SagerNet/sing-box.git git fetch --tags sekai version=$(CGO_ENABLED=0 go run ./cmd/internal/read_tag) + [ -z "$version" ] && version=${{ github.event.inputs.tag2 }} echo version=$version >> $GITHUB_OUTPUT if [ -z "$TAGS" ];then if [ "$REPO" = 'SagerNet/sing-box' ];then