Skip to content

Commit

Permalink
Merge #308
Browse files Browse the repository at this point in the history
308: Update version for the next release (v0.13.0) r=brunoocasali a=meili-bot

_This PR is auto-generated._

The automated script updates the version of meilisearch-dart to a new version: "v0.13.0"


Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com>
Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
  • Loading branch information
3 people authored May 17, 2023
2 parents 481aa81 + 4439c6f commit 34f6c58
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
16 changes: 5 additions & 11 deletions .github/scripts/check-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,19 @@
current_tag=$(echo $GITHUB_REF | cut -d '/' -f 3 | sed -r 's/^v//')

file1='pubspec.yaml'
file2='example/pubspec.yaml'
file3='example/pubspec.lock'
file4='README.md'
file5='lib/src/version.dart'
file2='README.md'
file3='lib/src/version.dart'
changelog_file='CHANGELOG.md'
ret=0

file_tag1=$(grep '^version: ' $file1 | cut -d ':' -f 2 | tr -d ' ')
file_tag2=$(grep 'meilisearch: "' $file2 | cut -d ':' -f 2 | tr -d '"' | tr -d ' ')
file_tag3=$(grep 'meilisearch' -A 6 $file3 | grep 'version: ' | cut -d ':' -f2 | tr -d '"' | tr -d ' ')
file_tag4=$(grep 'meilisearch: ' $file4 | cut -d '^' -f2)
file_tag5=$(grep -o "[0-9\.]" $file5 | tr -d '[:space:]')
if [ "$current_tag" != "$file_tag1" ] || [ "$current_tag" != "$file_tag2" ] || [ "$current_tag" != "$file_tag3" ] || [ "$current_tag" != "$file_tag4" ] || [ "$current_tag" != "$file_tag5" ]; then
file_tag2=$(grep 'meilisearch: ' $file2 | cut -d '^' -f2)
file_tag3=$(grep -o "[0-9\.]" $file3 | tr -d '[:space:]')
if [ "$current_tag" != "$file_tag1" ] || [ "$current_tag" != "$file_tag2" ] || [ "$current_tag" != "$file_tag3" ]; then
echo "Error: the current tag does not match the version in package file(s)."
echo "$file1: found $file_tag1 - expected $current_tag"
echo "$file2: found $file_tag2 - expected $current_tag"
echo "$file3: found $file_tag3 - expected $current_tag"
echo "$file4: found $file_tag4 - expected $current_tag"
echo "$file5: found $file_tag5 - expected $current_tag"
ret=1
fi

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ You can install the **meilisearch** package by adding a few lines into `pubspec.

```yaml
dependencies:
meilisearch: ^0.12.0
meilisearch: ^0.13.0
```
Then open your terminal and update dart packages.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Version {
static const String current = '0.12.0';
static const String current = '0.13.0';

static String get qualifiedVersion {
return "Meilisearch Dart (v$current)";
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: meilisearch
description: Meilisearch Dart is the Meilisearch API client for Dart and Flutter developers.
version: 0.12.0
version: 0.13.0
homepage: https://meilisearch.com
repository: https://github.com/meilisearch/meilisearch-dart
issue_tracker: https://github.com/meilisearch/meilisearch-dart/issues
Expand Down

0 comments on commit 34f6c58

Please sign in to comment.