windows: better sanitize branch names when building PR to align with linux [noCI]

This commit is contained in:
Aurelien David
2025-10-22 14:57:30 +02:00
parent 9afc7234c2
commit d28133007b
2 changed files with 6 additions and 0 deletions

View File

@@ -60,6 +60,9 @@ set "BRANCH=%BRANCH:<=-%"
set "BRANCH=%BRANCH:>=-%"
set "BRANCH=%BRANCH:|=-%"
set "BRANCH=%BRANCH:@=-%"
set "BRANCH=%BRANCH:_=-%"
set "BRANCH=%BRANCH:(=-%"
set "BRANCH=%BRANCH:)=-%"
REM remove anotated tag from VERSION

View File

@@ -15,6 +15,9 @@ set "BRANCH=%BRANCH:<=-%"
set "BRANCH=%BRANCH:>=-%"
set "BRANCH=%BRANCH:|=-%"
set "BRANCH=%BRANCH:@=-%"
set "BRANCH=%BRANCH:_=-%"
set "BRANCH=%BRANCH:(=-%"
set "BRANCH=%BRANCH:)=-%"
REM remove anotated tag from VERSION
setlocal enabledelayedexpansion