Skip to content

Commit 605812f

Browse files
committed
Make sure it is exactly the right string instead of just containing it
1 parent 311b9b9 commit 605812f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/playwright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
107107
108108
- name: Get correct version name for require
109-
run: echo "REQUIRE_VERSION=$([[ '${{ env.CORE_HASH }}' =~ [0-9]+\.[xX] ]] && echo '${{ env.CORE_HASH }}-dev' || echo 'dev-${{ env.CORE_HASH }}')" >> $GITHUB_ENV
109+
run: echo "REQUIRE_VERSION=$([[ '${{ env.CORE_HASH }}' =~ ^[0-9]+\.[xX]$ ]] && echo '${{ env.CORE_HASH }}-dev' || echo 'dev-${{ env.CORE_HASH }}')" >> $GITHUB_ENV
110110

111111
- name: Composer require the local rapidez/core
112112
run: composer require rapidez/core:"${{ env.REQUIRE_VERSION }} as ${{ env.LATEST_TAG }}"

0 commit comments

Comments
 (0)