File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ if [[ ! $current_branch =~ ^(release|support)/[0-9]+\.[0-9]+\.[0-9]+(-rc)?$ ]];
2222fi
2323
2424version=$1
25+ common_dependency_version=${2:- $version } # Use second parameter if provided, otherwise fallback to version
2526
2627# Add changelog to the index and create a commit
2728podspec_file=" Mindbox.podspec"
@@ -39,6 +40,9 @@ grep "spec.version" $podspec_file
3940sed -i ' ' " s/\(spec.dependency 'MindboxLogger', '\)[^']*\(\'\)/\1$version \2/g" " $podspec_file "
4041echo " $podspec_file dependency on MindboxLogger updated to $version ."
4142
43+ sed -i ' ' " s/\(spec.dependency 'MindboxCommon', '\)[^']*\(\'\)/\1$common_dependency_version \2/g" " $podspec_file "
44+ echo " $podspec_file dependency on MindboxCommon updated to $common_dependency_version ."
45+
4246sed -i ' ' " s/^\([[:space:]]*spec.version[[:space:]]*=[[:space:]]*\" \).*\(\" $\)/\1$version \2/" $podspec_file
4347
4448echo " 'Mindbox.podspec' After updating version:"
@@ -97,4 +101,3 @@ if ! git push origin $current_branch; then
97101 echo " Failed to push changes to the origin $current_branch "
98102 exit 1
99103fi
100-
Original file line number Diff line number Diff line change 66 release_version :
77 description : ' Release version (e.g. 1.2.3 or 1.2.3-rc)'
88 required : true
9+ mindbox_common_version :
10+ description : ' MindboxCommon version (defaults to release_version)'
11+ required : false
912 source_branch :
1013 description : ' Create branch from'
1114 required : true
@@ -72,20 +75,20 @@ jobs:
7275 id : bump
7376 run : |
7477 VERSION="${{ github.event.inputs.release_version }}"
78+ VERSION_COMMON="${{ github.event.inputs.mindbox_common_version }}"
7579 SRC="${{ github.event.inputs.source_branch }}"
7680 REL="release/$VERSION"
7781
7882 echo "→ Branching from $SRC into $REL"
7983 git checkout -b "$REL"
8084
8185 echo "→ Running bump script on $REL"
82- ./.github/git-release-branch-create.sh "$VERSION"
86+ ./.github/git-release-branch-create.sh "$VERSION" "$VERSION_COMMON"
8387
8488 echo "release_branch=$REL" >> $GITHUB_OUTPUT
8589
8690 - name : Push release branch
87- run : |
88- git push origin "${{ steps.bump.outputs.release_branch }}"
91+ run : git push origin "${{ steps.bump.outputs.release_branch }}"
8992
9093 check_sdk_version :
9194 name : Check SDK Version
You can’t perform that action at this time.
0 commit comments