Skip to content

Commit a2637c9

Browse files
committed
Fix workflows
1 parent 3e66f5c commit a2637c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/sh
22

33
meilisearch_php_version=$(grep 'public const VERSION =' ./src/MeiliSearch.php | cut -d ' ' -f 9 | tr -d "'" | tr -d ";")
4-
beta_feature=$(echo $meilisearch_php_version | sed -r 's/[0-9]+.[0-9]+.[0-9]+-meilisearch-//')
5-
beta_feature=$(echo $beta_feature | sed -r 's/-beta\.[0-9]*$//')
4+
beta_feature=$(echo $meilisearch_php_version | sed -r 's/([0-9]+.[0-9]+.[0-9]+)(-meilisearch)?-//' | sed -r 's/..$//')
65

76
docker_image=$(curl https://hub.docker.com/v2/repositories/getmeili/meilisearch/tags | jq | grep "$beta_feature" | head -1)
87
docker_image=$(echo $docker_image | grep '"name":' | cut -d ':' -f 2- | tr -d ' ' | tr -d '"' | tr -d ',')
8+
99
echo $docker_image

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
tests:
4242
# Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR)
4343
# Will still run for each push to bump-meilisearch-v*
44-
if: github.event_name != 'pull_request' || !startsWith(github.base_ref, 'bump-meilisearch-v')
44+
if: github.event_name != 'pull_request' || !startsWith(github.base_ref, 'bump-meilisearch-v') || !endsWith(github.base_ref, '-beta')
4545
runs-on: ubuntu-latest
4646
strategy:
4747
matrix:

0 commit comments

Comments
 (0)