From 0033d86e65f39ecb80438c31e569dcfb13e4e454 Mon Sep 17 00:00:00 2001 From: juewuy <61367819+juewuy@users.noreply.github.com> Date: Sat, 30 Mar 2024 13:58:57 +0800 Subject: [PATCH] Update core_auto_update.yml --- .github/workflows/core_auto_update.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/core_auto_update.yml b/.github/workflows/core_auto_update.yml index 647f833..3c241e2 100644 --- a/.github/workflows/core_auto_update.yml +++ b/.github/workflows/core_auto_update.yml @@ -21,10 +21,13 @@ jobs: git fetch --tags sekai version_new=$(CGO_ENABLED=0 go run ./cmd/internal/read_tag) version_old=$(curl -sSl https://github.com/juewuy/ShellCrash/releases/download/singbox_core_PuerNya/version) - [ "$version_old" = "$version_new" ] && { + if [ "$version_old" != "$version_new" ];then + echo a=$version_old >> $GITHUB_ENV + echo b=$version_new >> $GITHUB_ENV + else echo "未检查到版本更新,已退出!" exit 1 - } + fi auto_update_singboxp_with_wg: needs: check_version