File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,17 @@ jobs:
4242 set -eo pipefail
4343
4444 temptag=$(git describe --tags `git rev-list --tags --max-count=1`)
45- VERSION=${temptag#*v}
46- VERSIONLIST=(${VERSION//-/ })
47- echo ${VERSIONLIST[0]}
48- export LIB_VERSION=${VERSIONLIST[0]}
49-
45+ vtaglist=(${temptag//-/ })
46+ beta=${vtaglist[2]}
47+ version=${vtaglist[1]}
48+ if [ ${#beta} -gt 0 ]
49+ then
50+ version=${vtaglist[1]}-$beta
51+ fi
52+ version=${version#*v}
53+ echo $version
54+
55+ export LIB_VERSION=$version
5056 perl -i -pe "s#.*s.source =.*#\ts.source = { :git => 'https://github.com/tencentyun/iot-link-ios.git', :tag => \"$temptag\" }#g" TIoTLinkVideo.podspec
5157
5258 pod lib lint TIoTLinkVideo.podspec --verbose --allow-warnings --use-libraries
You can’t perform that action at this time.
0 commit comments