Skip to content

Commit 0942229

Browse files
committed
Export REDIS_MAJOR_VERSION correctly in run-tests
1 parent 92e2ff7 commit 0942229

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/run-tests/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ runs:
6666
6767
echo "::group::Starting Redis servers"
6868
redis_major_version=$(echo "$REDIS_VERSION" | grep -oP '^\d+')
69+
echo "REDIS_MAJOR_VERSION=${redis_major_version}" >> $GITHUB_ENV
6970
7071
if (( redis_major_version < 8 )); then
7172
echo "Using redis-stack for module tests"
@@ -87,8 +88,7 @@ runs:
8788
8889
if (( redis_major_version < 7 )); then
8990
export REDIS_STACK_EXTRA_ARGS="--tls-auth-clients optional --save ''"
90-
export REDIS_EXTRA_ARGS="--tls-auth-clients optional --save ''"
91-
echo "REDIS_MAJOR_VERSION=${redis_major_version}" >> $GITHUB_ENV
91+
export REDIS_EXTRA_ARGS="--tls-auth-clients optional --save ''"
9292
fi
9393
9494
invoke devenv --endpoints=all-stack

0 commit comments

Comments
 (0)