File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Checking if current tag matches the package version
4
4
current_tag=$( echo $GITHUB_REF | tr -d ' refs/tags/v' )
5
- major=$( echo $current_tag | cut -d ' .' -f1 )
6
- minor=$( echo $current_tag | cut -d ' .' -f2 )
7
- round_current_tag=" $major .$minor .0"
8
5
9
6
file1=' pubspec.yaml'
10
7
file2=' example/pubspec.yaml'
@@ -17,7 +14,7 @@ file_tag1=$(grep '^version: ' $file1 | cut -d ':' -f 2 | tr -d ' ')
17
14
file_tag2=$( grep ' meilisearch: "' $file2 | cut -d ' :' -f 2 | tr -d ' "' | tr -d ' ' )
18
15
file_tag3=$( grep ' meilisearch' -A 6 $file3 | grep ' version: ' | cut -d ' :' -f2 | tr -d ' "' | tr -d ' ' )
19
16
file_tag4=$( grep ' meilisearch: ' $file4 | cut -d ' ^' -f2)
20
- if [ " $current_tag " != " $file_tag1 " ] || [ " $current_tag " != " $file_tag2 " ] || [ " $current_tag " != " $file_tag3 " ] || [ " $round_current_tag " != " $file_tag4 " ]; then
17
+ if [ " $current_tag " != " $file_tag1 " ] || [ " $current_tag " != " $file_tag2 " ] || [ " $current_tag " != " $file_tag3 " ] || [ " $current_tag " != " $file_tag4 " ]; then
21
18
echo " Error: the current tag does not match the version in package file(s)."
22
19
echo " $file1 : found $file_tag1 - expected $current_tag "
23
20
echo " $file2 : found $file_tag2 - expected $current_tag "
You can’t perform that action at this time.
0 commit comments