mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-29 16:24:26 +01:00
Update .github/scripts/check-release.sh
Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
parent
5318e53248
commit
c484d28646
25
.github/scripts/check-release.sh
vendored
25
.github/scripts/check-release.sh
vendored
@ -8,21 +8,18 @@ file3='meilisearch-lib/Cargo.toml'
|
|||||||
file4='meilisearch-types/Cargo.toml'
|
file4='meilisearch-types/Cargo.toml'
|
||||||
file5='Cargo.lock'
|
file5='Cargo.lock'
|
||||||
|
|
||||||
file_tag1=$(grep '^version = ' $file1 | cut -d '=' -f 2 | tr -d '"' | tr -d ' ')
|
|
||||||
file_tag2=$(grep '^version = ' $file2 | cut -d '=' -f 2 | tr -d '"' | tr -d ' ')
|
|
||||||
file_tag3=$(grep '^version = ' $file3 | cut -d '=' -f 2 | tr -d '"' | tr -d ' ')
|
|
||||||
file_tag4=$(grep '^version = ' $file4 | cut -d '=' -f 2 | tr -d '"' | tr -d ' ')
|
|
||||||
file_tag5=$(grep -A 1 'name = "meilisearch-auth"' $file5 | grep version | cut -d '=' -f 2 | tr -d '"' | tr -d ' ')
|
|
||||||
|
|
||||||
if [ "$current_tag" != "$file_tag1" ] || [ "$current_tag" != "$file_tag2" ] || [ "$current_tag" != "$file_tag3" ] || [ "$current_tag" != "$file_tag4" ] || [ "$current_tag" != "$file_tag5" ]; then
|
file5=$(grep -A 1 'name = "meilisearch-auth"' $file5 | grep version)
|
||||||
echo "Error: the current tag does not match the version in package file(s)."
|
|
||||||
echo "$file1: found $file_tag1 - expected $current_tag"
|
for file in $file1 $file2 $file3 $file4 $file5;
|
||||||
echo "$file2: found $file_tag2 - expected $current_tag"
|
do
|
||||||
echo "$file3: found $file_tag3 - expected $current_tag"
|
file_tag=$(grep '^version = ' $file | cut -d '=' -f 2 | tr -d '"' | tr -d ' ')
|
||||||
echo "$file4: found $file_tag4 - expected $current_tag"
|
if [ "$current_tag" != "$file_tag" ]; then
|
||||||
echo "$file5: found $file_tag5 - expected $current_tag"
|
echo "Error: the current tag does not match the version in package file(s)."
|
||||||
exit 1
|
echo "$file: found $file_tag - expected $current_tag"
|
||||||
fi
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
echo 'OK'
|
echo 'OK'
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user