mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
fix: CI version check
This commit is contained in:
4
.github/workflows/CI.yml
vendored
4
.github/workflows/CI.yml
vendored
@@ -45,10 +45,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
version=$(yq e .version pubspec.yaml | cut -d "+" -f 1)
|
version=$(yq e .version pubspec.yaml | cut -d "+" -f 1)
|
||||||
last_tag=$(git tag --sort=committerdate | tail -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格式不正确"
|
echo "Tag格式不正确"
|
||||||
exit 1
|
exit 1
|
||||||
elif $(echo $last_tag | grep $version); then
|
elif (echo $last_tag | grep -v $version); then
|
||||||
echo "当前版本tag不存在,请手动添加tag."
|
echo "当前版本tag不存在,请手动添加tag."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user