Skip to content

Commit 061bc37

Browse files
authored
Fix future Playwright tests (#1115)
1 parent fc9d493 commit 061bc37

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/playwright.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,11 @@ jobs:
104104
echo "CORE_HASH=$(git symbolic-ref --short HEAD 2>/dev/null || git rev-parse HEAD | sed 's|/|_|g')" >> $GITHUB_ENV
105105
echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
106106
107+
- name: Get correct version name for require
108+
run: echo "REQUIRE_VERSION=$([[ '${{ env.CORE_HASH }}' =~ ^[0-9]+\.[xX]$ ]] && echo '${{ env.CORE_HASH }}-dev' || echo 'dev-${{ env.CORE_HASH }}')" >> $GITHUB_ENV
109+
107110
- name: Composer require the local rapidez/core
108-
run: composer require rapidez/core:"dev-${{ env.CORE_HASH }} as ${{ env.LATEST_TAG }}"
111+
run: composer require rapidez/core:"${{ env.REQUIRE_VERSION }} as ${{ env.LATEST_TAG }}"
109112

110113
- name: Install Rapidez command
111114
run: php artisan rapidez:install --frontendonly

0 commit comments

Comments
 (0)