Skip to content

Commit

Permalink
Update iOS versioning for Cocoapods changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaunt committed May 13, 2024
1 parent faec1a0 commit 2c5727e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/shared-publish-to-ios-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ jobs:
- name: Update UID2.Client.ios
run: |
current_version=$(grep -o '<string>.*</string>' ${{ inputs.working_dir }}/Sources/UID2/Properties/sdk_properties.plist | head -1 | sed 's/<string>\(.*\)<\/string>/\1/')
formatted_current_version=$(grep -o '\d*,\s*\d*,\s*\d*' ${{ inputs.working_dir }}/Sources/UID2/Properties/UID2SDKProperties.swift | head -1)
new_version=${{ steps.version.outputs.new_version }}
sed -i '' -e "s/$current_version/$new_version/g" ${{ inputs.working_dir }}/Sources/UID2/Properties/sdk_properties.plist
formatted_new_version=$(echo "$new_version" | sed 's/\([[:digit:]]\)\.\([[:digit:]]\)\.\([[:digit:]]\)/\1, \2, \3/')
sed -i '' -e "s/$formatted_current_version/$formatted_new_version/g" ${{ inputs.working_dir }}/Sources/UID2/Properties/sdk_properties.plist
current_version=$(echo "$formatted_current_version" | sed 's/\(.*\),[[:space:]]*\(.*\),[[:space:]]*\(.*\)/\1.\2.\3/')
echo "Version number updated from $current_version to $new_version"
- name: Select Xcode 15.3
Expand Down

0 comments on commit 2c5727e

Please sign in to comment.