Skip to content

Commit

Permalink
ci: fix cocoapods beta version publish script (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoloMao authored Oct 26, 2023
1 parent e60f1fa commit 3093a4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/cocoapods-beta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ set -x

POD_BETA_VERSION=`cat GrowingAnalytics.podspec | grep 's.version\s*=' | grep -Eo '[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'`

if [ ! -n "$POD_BETA_VERSION" ] ;then
if [ -n "$POD_BETA_VERSION" ] ;then
echo "spec文件中,版本号包含beta,且配置正确,继续"
else
echo "spec文件中,版本号配置beta错误,无法进行beta版本发布"
exit 1
exit 0
fi

TAG_VERSION=$(git tag | grep $POD_BETA_VERSION)
Expand Down

0 comments on commit 3093a4a

Please sign in to comment.