Skip to content

Commit 38ef5b5

Browse files
committed
Clean up with variable usage
1 parent 0dd5141 commit 38ef5b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/playwright.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ jobs:
104104
run: |
105105
echo "CORE_HASH=$(git symbolic-ref --short HEAD 2>/dev/null || git rev-parse HEAD | sed 's|/|_|g')" >> $GITHUB_ENV
106106
echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
107+
echo "REQUIRE_VERSION=$([[ '${{ env.CORE_HASH }}' =~ [0-9]+\.[xX] ]] && echo '${{ env.CORE_HASH }}-dev' || echo 'dev-${{ env.CORE_HASH }}')" >> $GITHUB_ENV
107108
108109
- name: Composer require the local rapidez/core
109-
run: |
110-
[[ '${{ env.CORE_HASH }}' =~ [0-9]+\.[xX] ]] && composer require rapidez/core:"${{ env.CORE_HASH }}-dev as ${{ env.LATEST_TAG }}" || composer require rapidez/core:"dev-${{ env.CORE_HASH }} as ${{ env.LATEST_TAG }}"
110+
run: composer require rapidez/core:"${{ env.REQUIRE_VERSION }} as ${{ env.LATEST_TAG }}"
111111

112112
- name: Install Rapidez command
113113
run: php artisan rapidez:install --frontendonly

0 commit comments

Comments
 (0)