Auto Tag When Archive
if [[ "$TARGET_BUILD_DIR" == *"/Archive"* ]]; then
tagName="$MARKETING_VERSION-$CURRENT_PROJECT_VERSION-${CONFIGURATION=}"
if git rev-parse "$tagName" >/dev/null 2>&1; then
git tag -d $tagName
git push origin --delete $tagName
fi
git tag $tagName
git push origin $tagName
fi
网友评论