Skip to content

Commit 4df6ce6

Browse files
committed
ci: docbuild/docpublish: allow uppercase in tags
Until now, we never allowed uppercase characters in tag. Allow them now. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
1 parent 89ee2ad commit 4df6ce6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/docbuild.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
7575
- name: Check version
7676
run: |
77-
VERSION_REGEX="^v([0-9a-z\.\-]+)$"
77+
VERSION_REGEX="^v([0-9a-zA-Z\.\-]+)$"
7878
if [[ ${GITHUB_REF#refs/tags/} =~ $VERSION_REGEX ]]; then
7979
VERSION=${BASH_REMATCH[1]}
8080
elif [[ ${GITHUB_REF#refs/heads/} == "main" ]]; then

.github/workflows/docpublish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Unzip html archive
2121
working-directory: docs
2222
run: |
23-
OUTDIR=$(awk 'NR==1 { if ($3 ~ /^(latest|PR-[0-9]+|[0-9]+\.[0-9a-z\.\-]+)$/) print $3 }' monitor_*.txt)
23+
OUTDIR=$(awk 'NR==1 { if ($3 ~ /^(latest|PR-[0-9]+|[0-9]+\.[0-9a-zA-Z\.\-]+)$/) print $3 }' monitor_*.txt)
2424
echo "OUTDIR=$OUTDIR" >> "$GITHUB_ENV"
2525
unzip legacy-ncs*.zip -d $OUTDIR
2626

0 commit comments

Comments
 (0)