From 5f0d53c0de94538a90cdcb551c2062ecd9e333c9 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Thu, 19 Dec 2024 13:42:46 +0100 Subject: [PATCH] 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 --- .github/workflows/docbuild.yml | 2 +- .github/workflows/docpublish.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docbuild.yml b/.github/workflows/docbuild.yml index 3ca9e3117933..7af641b9545e 100644 --- a/.github/workflows/docbuild.yml +++ b/.github/workflows/docbuild.yml @@ -74,7 +74,7 @@ jobs: - name: Check version run: | - VERSION_REGEX="^v([0-9a-z\.\-]+)$" + VERSION_REGEX="^v([0-9a-zA-Z\.\-]+)$" if [[ ${GITHUB_REF#refs/tags/} =~ $VERSION_REGEX ]]; then VERSION=${BASH_REMATCH[1]} elif [[ ${GITHUB_REF#refs/heads/} == "main" ]]; then diff --git a/.github/workflows/docpublish.yml b/.github/workflows/docpublish.yml index 2962ac6f3155..9cc43dae94a5 100644 --- a/.github/workflows/docpublish.yml +++ b/.github/workflows/docpublish.yml @@ -20,7 +20,7 @@ jobs: - name: Unzip html archive working-directory: docs run: | - OUTDIR=$(awk 'NR==1 { if ($3 ~ /^(latest|PR-[0-9]+|[0-9]+\.[0-9a-z\.\-]+)$/) print $3 }' monitor_*.txt) + OUTDIR=$(awk 'NR==1 { if ($3 ~ /^(latest|PR-[0-9]+|[0-9]+\.[0-9a-zA-Z\.\-]+)$/) print $3 }' monitor_*.txt) echo "OUTDIR=$OUTDIR" >> "$GITHUB_ENV" unzip legacy-ncs*.zip -d $OUTDIR