mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Rollback 0.0.0 versionning
This commit is contained in:
parent
7490383d4f
commit
32c8846514
5 changed files with 17 additions and 15 deletions
20
.github/scripts/check-release.sh
vendored
20
.github/scripts/check-release.sh
vendored
|
@ -3,24 +3,26 @@
|
|||
# check_tag $current_tag $file_tag $file_name
|
||||
function check_tag {
|
||||
if [ "$1" != "$2" ]; then
|
||||
echo "Error: the current tag does not match the version in $3:"
|
||||
echo "Found $1 - expected $2"
|
||||
exit 1
|
||||
echo "Error: the current tag does not match the version in $3: found $1 - expected $2"
|
||||
ret=1
|
||||
fi
|
||||
}
|
||||
|
||||
ret=0
|
||||
current_tag=$(echo $GITHUB_REF | tr -d 'refs/tags/v')
|
||||
|
||||
files='*/Cargo.toml'
|
||||
for file in $files;
|
||||
toml_files='*/Cargo.toml'
|
||||
for toml_file in $toml_files;
|
||||
do
|
||||
file_tag="$(grep '^version = ' $file | cut -d '=' -f 2 | tr -d '"' | tr -d ' ')"
|
||||
check_tag $current_tag $file_tag $file
|
||||
file_tag="$(grep '^version = ' $toml_file | cut -d '=' -f 2 | tr -d '"' | tr -d ' ')"
|
||||
check_tag $current_tag $file_tag $toml_file
|
||||
done
|
||||
|
||||
lock_file='Cargo.lock'
|
||||
lock_tag=$(grep -A 1 'name = "meilisearch-auth"' $lock_file | grep version | cut -d '=' -f 2 | tr -d '"' | tr -d ' ')
|
||||
check_tag $current_tag $lock_tag $lock_file
|
||||
|
||||
echo 'OK'
|
||||
exit 0
|
||||
if [ "$ret" -eq 0 ] ; then
|
||||
echo 'OK'
|
||||
fi
|
||||
exit $ret
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue