ci: now also allows vX.Y.Z
commit86509268312a96cae3603c4d04d2282d08818d60
authorrobcholz <84130577+robcholz@users.noreply.github.com>
dateSat 7 Feb 2026, 21:52 (8 months ago)
parent2357f2c
.github/workflows/release.yml+3−3
@@ -6,7 +6,7 @@ permissions:
66on:
77 push:
88 tags:
9− - "v*.*.*-*"
9+ - "v*.*.*"
1010
1111concurrency:
1212 group: release-${{ github.ref }}
@@ -24,8 +24,8 @@ jobs:
2424 - name: Validate release tag format
2525 run: |
2626 TAG="${GITHUB_REF_NAME}"
27− if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-[A-Za-z]+$ ]]; then
28− echo "Tag '$TAG' does not match required format vX.X.X-word"
27+ if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z]+)?$ ]]; then
28+ echo "Tag '$TAG' does not match required format vX.X.X or vX.X.X-word"
2929 exit 1
3030 fi
3131