From ad913f23aa293b6a47dd60dc0285006c1f7efad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Wannenmacher?= Date: Fri, 23 May 2025 07:51:11 +0200 Subject: [PATCH] chore(fix): validation of version --- .github/workflows/publish.yaml | 2 +- .github/workflows/release.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 14d7ab7..afdbb14 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -33,7 +33,7 @@ jobs: id: version run: | VERSION=$(task version) - if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev)?$ ]]; then + if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev(-[0-9a-f]*)?)?$ ]]; then echo "Invalid version format in VERSION file: $VERSION" exit 1 fi diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 125e3e6..b39df9b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -30,7 +30,7 @@ jobs: id: version run: | VERSION=$(task version) - if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev)?$ ]]; then + if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-dev(-[0-9a-f]*)?)?$ ]]; then echo "Invalid version format in VERSION file: $VERSION" exit 1 fi