diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 073390b7..7a2468a6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,11 +52,6 @@ # Get the current build number from Info.plist CURRENT_BUILD_NUMBER=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "ios/PoppinProject/Info.plist") - # Check if CURRENT_BUILD_NUMBER is a number, if not set it to 4 - if ! [[ "$CURRENT_BUILD_NUMBER" =~ ^[0-9]+$ ]]; then - CURRENT_BUILD_NUMBER=4 - fi - # Increment the build number NEW_BUILD_NUMBER=$((CURRENT_BUILD_NUMBER + 1)) @@ -65,6 +60,8 @@ /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $NEW_BUILD_NUMBER" "ios/PoppinProject/Info.plist" echo "Updated version number to $VERSION_NUMBER and build number to $NEW_BUILD_NUMBER" + + echo "Updated version number to $VERSION_NUMBER and build number to $NEW_BUILD_NUMBER" - name: Decode iOS secrets env: P12_DISTRIBUTION_CERTIFICATE_BASE64: ${{ secrets.IOS_P12_DISTRIBUTION_CERTIFICATE_BASE64 }}