fix: CI version check

This commit is contained in:
VillagerTom
2024-06-17 08:46:42 +08:00
committed by orz12
parent 258064e64d
commit bedf6315b5

View File

@@ -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