File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,22 @@ file4='README.md'
10
10
file5=' ./meilisearch-index-setting-macro/Cargo.toml'
11
11
12
12
file_tag1=$( grep ' ^version = ' $file1 | cut -d ' =' -f 2 | tr -d ' "' | tr -d ' ' )
13
+ file_tag_1_1=$( grep ' { path = "meilisearch-index-setting-macro", version =' $file1 | grep -Eo ' [0-9]+.[0-9]+.[0-9]+' )
13
14
file_tag2=$( grep ' meilisearch-sdk = ' $file2 | cut -d ' =' -f 2 | tr -d ' "' | tr -d ' ' )
14
15
file_tag3=$( grep ' meilisearch-sdk = ' $file3 | cut -d ' =' -f 2 | tr -d ' "' | tr -d ' ' )
15
16
file_tag4=$( grep ' meilisearch-sdk = ' $file4 | cut -d ' =' -f 2 | tr -d ' "' | tr -d ' ' )
16
17
file_tag5=$( grep ' ^version = ' $file5 | grep -Eo ' [0-9]+.[0-9]+.[0-9]+' )
17
18
18
19
if [ " $current_tag " != " $file_tag1 " ] ||
20
+ [ " $current_tag " != " $file_tag_1_1 " ] ||
19
21
[ " $current_tag " != " $file_tag2 " ] ||
20
22
[ " $current_tag " != " $file_tag3 " ] ||
21
23
[ " $current_tag " != " $file_tag4 " ] ||
22
24
[ " $current_tag " != " $file_tag5 " ] \
23
25
; then
24
26
echo " Error: the current tag does not match the version in package file(s)."
25
27
echo " $file1 : found $file_tag1 - expected $current_tag "
28
+ echo " $file1 : found $file_tag_1_1 - expected $current_tag "
26
29
echo " $file2 : found $file_tag2 - expected $current_tag "
27
30
echo " $file3 : found $file_tag3 - expected $current_tag "
28
31
echo " $file4 : found $file_tag4 - expected $current_tag "
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ old_index_macro_version=$(grep '^version = ' ./meilisearch-index-setting-macro/C
7
7
old_macro_in_sdk_version=$( grep ' { path = "meilisearch-index-setting-macro", version =' ./Cargo.toml)
8
8
9
9
sed -i ' ' -e " s/^$old_index_macro_version /$new_version /g" ' ./meilisearch-index-setting-macro/Cargo.toml'
10
+ sed -i ' ' -e " s/$old_macro_in_sdk_version /meilisearch-index-setting-macro = { path = \" meilisearch-index-setting-macro\" , $new_version }/g" ' ./Cargo.toml'
You can’t perform that action at this time.
0 commit comments