From bedf6315b5f9c42220b914973c421a0112c4df70 Mon Sep 17 00:00:00 2001 From: VillagerTom Date: Mon, 17 Jun 2024 08:46:42 +0800 Subject: [PATCH] fix: CI version check --- .github/workflows/CI.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1692ab98..14a1a239 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -45,10 +45,10 @@ jobs: run: | version=$(yq e .version pubspec.yaml | cut -d "+" -f 1) last_tag=$(git tag --sort=committerdate | tail -1) - if $(echo $last_tag | grep -v "+"); then + if (echo $last_tag | grep -v "+"); then echo "Tag格式不正确" exit 1 - elif $(echo $last_tag | grep $version); then + elif (echo $last_tag | grep -v $version); then echo "当前版本tag不存在,请手动添加tag." exit 1 fi