Created
March 31, 2020 14:13
-
-
Save biloshkurskyi-ss/138efff63dc79455d2e2e05d3aed03ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
set -x | |
# get release number from Xcode build settings | |
version=$(sed -n '/MARKETING_VERSION/{s/MARKETING_VERSION = //;s/;//;s/^[[:space:]]*//;p;q;}' $BITRISE_SOURCE_DIR/FieldaFreedom.xcodeproj/project.pbxproj) | |
if [ -z "${version}" ]; then | |
echo "[ERROR] failed to get MARKETING_VERSION" | |
exit 1 | |
fi | |
envman add --key GIT_APP_BUILD_NUMBER --value "${version}.${BITRISE_BUILD_NUMBER}" | |
echo "GIT_APP_BUILD_NUMBER: ${GIT_APP_BUILD_NUMBER}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment