mirror of
https://github.com/robcholz/vibebox.git
synced 2026-05-21 06:56:48 +02:00
ci: now also allows vX.Y.Z
This commit is contained in:
@@ -6,7 +6,7 @@ permissions:
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*.*.*-*"
|
||||
- "v*.*.*"
|
||||
|
||||
concurrency:
|
||||
group: release-${{ github.ref }}
|
||||
@@ -24,8 +24,8 @@ jobs:
|
||||
- name: Validate release tag format
|
||||
run: |
|
||||
TAG="${GITHUB_REF_NAME}"
|
||||
if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-[A-Za-z]+$ ]]; then
|
||||
echo "Tag '$TAG' does not match required format vX.X.X-word"
|
||||
if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z]+)?$ ]]; then
|
||||
echo "Tag '$TAG' does not match required format vX.X.X or vX.X.X-word"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user