Skip to content

Commit 5d79f90

Browse files
committed
fix string trimming
1 parent 86cf92d commit 5d79f90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/integration.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ jobs:
107107
shell: cmd
108108
env:
109109
REDIS_VERSION: ${{env.redis_stack_version}}
110-
run: |
111-
# trim version to major.minor.patch format
112-
REDIS_VERSION=$(echo "$REDIS_VERSION" | sed -E 's/[^0-9]*([0-9]+\.[0-9]+(\.[0-9]+)?).*/\1/')
113-
echo $REDIS_VERSION
110+
run: |
111+
rem Extract part of the version before the '-' character
112+
for /f "tokens=1 delims=-" %%a in ("%REDIS_VERSION%") do set REDIS_VERSION=%%a
113+
echo %REDIS_VERSION%
114114
dotnet test -f net481 --no-build --verbosity detailed -p:BuildInParallel=false tests/Test.proj --logger GitHubActions

0 commit comments

Comments
 (0)