Skip to content

Commit 28b9de9

Browse files
VailenceVailence
andauthored
WMSDK-547 MindboxCommon CI (#614)
* WMSDK-547 Update MindboxCommon dependency * WMSDK-547 Update Manual workflow * WMSDK-547 Provide new variable for MindboxCommon --------- Co-authored-by: Vailence <[email protected]>
1 parent 8889300 commit 28b9de9

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/git-release-branch-create.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ if [[ ! $current_branch =~ ^(release|support)/[0-9]+\.[0-9]+\.[0-9]+(-rc)?$ ]];
2222
fi
2323

2424
version=$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
2728
podspec_file="Mindbox.podspec"
@@ -39,6 +40,9 @@ grep "spec.version" $podspec_file
3940
sed -i '' "s/\(spec.dependency 'MindboxLogger', '\)[^']*\(\'\)/\1$version\2/g" "$podspec_file"
4041
echo "$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+
4246
sed -i '' "s/^\([[:space:]]*spec.version[[:space:]]*=[[:space:]]*\"\).*\(\"$\)/\1$version\2/" $podspec_file
4347

4448
echo "'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
99103
fi
100-

.github/workflows/manual-prepare_release_branch.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
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

0 commit comments

Comments
 (0)