Skip to content

Commit 556c8cc

Browse files
gmarullcarlescufi
authored andcommitted
ci: docbuild: extend version regex
Extend the version regex to include a-z and '-' characters. This adds support for tags like v1.9.99-dev1, previously ignored. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent b0196cc commit 556c8cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
echo "publish2 dev PR-${{ github.event.number }} __FILE__" > monitor.txt
9090
echo "${{ github.event.number }}" > pr.txt
9191
else
92-
VERSION_REGEX="^v([0-9\.]+)$"
92+
VERSION_REGEX="^v([0-9a-z\.\-]+)$"
9393
if [[ ${GITHUB_REF#refs/tags/} =~ $VERSION_REGEX ]]; then
9494
VERSION=${BASH_REMATCH[1]}
9595
elif [[ ${GITHUB_REF#refs/heads/} == "main" ]]; then

0 commit comments

Comments
 (0)